version 1.2, 1995/11/27 18:37:07
|
version 1.4, 1998/05/02 21:28:43
|
Line 28 Create maze 1 cells allot /maze 25 * al
|
Line 28 Create maze 1 cells allot /maze 25 * al
|
Variable mazes 0 mazes ! \ root pointer |
Variable mazes 0 mazes ! \ root pointer |
Variable soko 0 soko ! \ player position |
Variable soko 0 soko ! \ player position |
Variable >maze 0 >maze ! \ current compiled maze |
Variable >maze 0 >maze ! \ current compiled maze |
>maze off |
|
|
|
\ score information |
\ score information |
|
|
Line 119 Variable score 0 score ! \ total nu
|
Line 118 Variable score 0 score ! \ total nu
|
S" &." S" .&" r@ play-rule IF r> soko +! EXIT THEN |
S" &." S" .&" r@ play-rule IF r> soko +! EXIT THEN |
S" &* " S" .&$" r@ play-rule |
S" &* " S" .&$" r@ play-rule |
IF r> soko +! 1 rocks +! -1 score +! EXIT THEN |
IF r> soko +! 1 rocks +! -1 score +! EXIT THEN |
|
S" &$." S" .@*" r@ play-rule |
|
IF r> soko +! 1 rocks +! -1 score +! EXIT THEN |
-1 moves +! r> drop ; |
-1 moves +! r> drop ; |
|
|
1 move: soko-right |
1 move: soko-right |