sp11--cheat
来源:互联网 发布:淘宝直通车推广方案 编辑:程序博客网 时间:2024/06/05 05:39
def cheat(boxs):
print "cheat mode on"
cheat_move = ""
for move in reversed(ALLMOVES):
if move == LEFT:
cheat_move = RIGHT
(boxx,boxy) = (BLANK[0]-1,BLANK[1])
elif move == RIGHT:
cheat_move = LEFT
(boxx,boxy) = (BLANK[0]+1,BLANK[1])
elif move == UP:
cheat_move = DOWN
(boxx,boxy) = (BLANK[0],BLANK[1]-1)
elif move == DOWN:
cheat_move = UP
(boxx,boxy) = (BLANK[0],BLANK[1]+1)
anim_side(boxs,boxx,boxy, cheat_move)
boxs[BLANK[0]][BLANK[1]].num = boxs[boxx][boxy].num
boxs[BLANK[0]][BLANK[1]].is_blank = False
boxs[boxx][boxy].move_to(cheat_move)
print "cheat mode on"
cheat_move = ""
for move in reversed(ALLMOVES):
if move == LEFT:
cheat_move = RIGHT
(boxx,boxy) = (BLANK[0]-1,BLANK[1])
elif move == RIGHT:
cheat_move = LEFT
(boxx,boxy) = (BLANK[0]+1,BLANK[1])
elif move == UP:
cheat_move = DOWN
(boxx,boxy) = (BLANK[0],BLANK[1]-1)
elif move == DOWN:
cheat_move = UP
(boxx,boxy) = (BLANK[0],BLANK[1]+1)
anim_side(boxs,boxx,boxy, cheat_move)
boxs[BLANK[0]][BLANK[1]].num = boxs[boxx][boxy].num
boxs[BLANK[0]][BLANK[1]].is_blank = False
boxs[boxx][boxy].move_to(cheat_move)
- sp11--cheat
- cheat
- cheat-sheets
- Cheat Sheet
- Cheat Sheet
- [ctsc2012] cheat
- udp cheat
- tcp cheat
- cheat (CTSC2012)
- Cheat Notes
- Cheat Myself
- ABAP Trial Version for Newbies: Part 9 ' Importing a transport into SP11/12 '
- 关于“cheat sheet”
- regular expressions cheat sheet
- Cheat Engine使用教程
- Vim Cheat Sheet
- vi vim cheat sheet
- Rails Migration Cheat Sheet
- Bit Manipulation
- redis中ziplist
- C#关于AutoResetEvent的使用介绍(转)
- 生成测试数据
- 大尾端小尾端
- sp11--cheat
- 进程管理(一)
- 解决jquery名称冲突
- VC6 各link错误解决
- javascript常用函数大全(一)
- hdu 2546 饭卡(简单DP)
- Oracle 11g系列—1—基础回顾
- 中缀表达式计算器
- Shell脚本的中的输入变量