snake
2015-12-29 23:51:07 2 举报
snake
作者其他创作
大纲/内容
print all Map[][] pattrens &hints
kbhit
No
W
D
locate patterns in Map
head.col++&futher check
output victory
quit game
start
NO
S
initializehead&body
A
random2=rand()%width
head.col--&futher check
Map[][]=space
initial()
run command
Yes
Yes/end
begin
recordstate&moves&scores
set gamespeed
scores are high enough to win
Map[]][]=space
tap quit bottom to quit game
output gameover
finish=clock()
output quit the game
toupper command
read command
scankeyboard
create food
in=getchar();moves++
game over
swithchA&S&W&D&Q
the coordinate is in the boundary
head.row++&futher check
Map[][]=wall
head.row--&futher check
random1=rand()%height
old head coordinate for body
exceed timelimit
start=clock()
end
0 条评论
下一页