home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun: Strategy Games 2
/
rerun-strategygamesII.d64
/
puzzles
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
61 lines
2 printchr$(147)"would you like instructions (y/n)?
4 [161] a$: [139] a$[179][177] "y" [175] a$[179][177]"n" [167] 4
6 [139] a$[178]"n" [167] 92
8 [153]"instructions on screen or printer (s/p)?
10 get b$: if b$<> "s" and b$<>"p" then 10
12 if b$="s"then d=3
14 if b$="p" then d=4
16 open d,d
18 print#d,"
20 [152]d,"puzzler's choice by daniel miller
22 print#d,"
24 [152]d,"run it right: c-64
26 print#d,"
28 [152]d,"alphabet puzzle is a version of the old
30 print#d,"slide-the-blocks game. here the game
32 [152]d,"board is a four-by-four matrix of 15
34 print#d,"tiles and one space. you must maneuver
36 [152]d,"the tiles into the arrangement shown to
38 print#d,"the right of the gameboard. only tiles
40 [152]d,"next to the space will move. just enter
42 print#d,"the letter of the tile that you want to
44 [152]d,"move.":[139] d[178]4 [167] 50
45 [152]d,"
46 print"press a key to continue"
47 get dd$:if dd$="" then 47
48 print#d,"
49 [152]d,"
50 print#d,"
51 [152]d,"juggernaut consists of a line of eight
52 print#d,"alternating red and yellow checkers,
53 [152]d,"with 2 spaces at the right end. you
54 print#d,"must get all the yellow to the right,
56 [152]d,"all the red to the left and the spaces
58 print#d,"to the far left by moving two adjacent
60 [152]d,"checkers at a time. letters are below
62 print#d,"and between the checkers. enter a
64 [152]d,"letter and the two checkers above it
66 print#d,"will move to the spaces, leaving their
68 [152]d,"old positions as new spaces. press f1
70 print#d,"for auto solve.
72 [152]d,"
74 print#d,"in checkers switch, red and black
76 [152]d,"checkers are arrayed on opposite sides
78 print#d,"of the board. using only legal checkers
80 [152]d,"moves, move each piece to the other
82 print#d,"side. make a move by entering row and
84 [152]d,"column coordinates (with no space
86 print#d,"between) for the "chr$(34)"from"chr$(34)" and "chr$(34)"to"chr$(34)"
88 [152]d,"squares. again, press f1 for auto solve.
90 print#d,"":closed
92 print"press any key to begin the program..."
94 get e$:if e$="" then 94
96 clr
100 print"
102 n$[178]"puzzled"
104 [153]"load"[199](34)n$[199](34)","8" ononon"
106 a$[178]"run"
108 a$[178]a$[170][199](13)
110 [151]631,13:[129]b[178]1[164][195](a$):[151]631[170]b,[198]([202](a$,b,1)):[130]:[151]198,10
112 [162]