REM ********************************************** REM More Qbasic Software at the Software Page.
REM http:
//www.euronet.nl
/users
/rkohm
/ REM Any Questions
? E
-mail
to:
REM **********************************************
DIM SHARED te$
(1001), commands$
(1000), location$
(99) '88 + 11
level = level + 1
try = 1
menu
luggage$
= "":
line$
= "": handloca
= 0: times
= 0
background
getlevel level
maze
entercomm
movements
PRINT "ERROR, PROGRAMME ENDED!!!!" 'You're not supposed to come here!!
endofgame:
newlist:
comm = 1
DRAW "c15bm10,20d320r40u320r40d320r40u320r40" DRAW "d320r40u320r40d320r40u320r40d320r40u320r40d320r40u320l440d320r440" DRAW "u40l440u40r440u40l440u40r440u40l440u40r440u40l440u40" DRAW "h10d340r460u340l460r5bdp15,15" DRAW "c4br50bd20l100u40r100d40bh20bl3bu5p4,4c14l40u10g15f15u10r40u10bgp14,14" DRAW "c4br50bd20l100u40r100d40bh20bl3bu5p4,4c14l40u10g15f15u10r40u10bgp14,14" DRAW "c4br50bd20l100u40r100d40bh20bl3bu5p4,4c14l40u10g15f15u10r40u10bgp14,14" DRAW "c4br50bd20l100u40r100d40bh20bl3bu5p4,4c14l40u10g15f15u10r40u10bgp14,14" DRAW "a0bm550,250c4br50bd20l100u40r100d40bh20bl60bd11p4,4c14" DRAW "u15r7u7l21d7r7d15r7bhp14,14f" DRAW "br32u22l21d22r7u7r7d7r7u11bl7u7l7d7r7bfp14,14h" DRAW "br11bd11u22r7d7e7r7g11f11l7h7d7l7bep14,14g" DRAW "br24 u22r15d5l8d4r6d5l6d4r8d5l15bep14,14" DRAW "a0bm550,300c4br50bd20l100u40r100d40bh20bl60bd11p4,4c14" DRAW "bl13 u22r7d15r8d7l15bep14,14g" DRAW "br33 u22l15d22r15bh4bu2 u10l7d10r7bfp14,14f3" DRAW "bd2br18 u22l15d22r15bh4bu2 u10l7d10r7bfp14,14f3" DRAW "br3bd2 u5r10u4l10u13r15d5l10d4r10d13l15bep14,14g" DRAW "br18 u22r15d4l8d4r6d5l6d4r8d5l15bep14,14"
DRAW "c15 bm530,350 r40d40l40u40" DRAW "bm480,5c4r140d330l140u330bfp1,4 bm480,5c15r140d330l140u330" DRAW "c15bm220,363d90r270u90l270" DRAW "c15bm500,411d40r120u40l120"
DRAW "c15bm15,363r175d90l175u90r75dc4d88br4u88" DRAW "c14bm15,363r175d90l175u90" DRAW "bm480,5c14r140d330l140u330" DRAW "c14bm220,363d90r270u90l270" DRAW "c14bm500,411d40r120u40l120"
try = try + 1
comm = 1
CASE "4": commands$
(comm
) = "left": comm
= comm
+ 1 PAINT (550, 40), 2, 4:
PLAY "l30a": waitawhile
.1:
PAINT (550, 40), 14, 4 CASE "8": commands$
(comm
) = "up": comm
= comm
+ 1 PAINT (525, 185), 2, 4:
PLAY "l30a": waitawhile
.1:
PAINT (525, 185), 14, 4 CASE "6": commands$
(comm
) = "right": comm
= comm
+ 1 PAINT (570, 90), 2, 4:
PLAY "l30a": waitawhile
.1:
PAINT (570, 90), 14, 4 CASE "2": commands$
(comm
) = "down": comm
= comm
+ 1 PAINT (575, 190), 2, 4:
PLAY "l30a": waitawhile
.1:
PAINT (575, 190), 14, 4 CASE "t": commands$
(comm
) = "take": comm
= comm
+ 1 PAINT (590, 250), 2, 4:
PLAY "l64a": waitawhile
.1 CASE "l": commands$
(comm
) = "loose": comm
= comm
+ 1 PAINT (565, 300), 2, 4:
PAINT (590, 300), 2, 4:
PLAY "l64a": waitawhile
.1 te$(pol) = commands$(pol)
commands$(comm) = "": comm = comm + 1
commands$(pol) = te$(pol - 1)
FOR pol
= comm
+ 1 TO 1000 te$(pol) = commands$(pol)
commands$(pol) = te$(pol + 1)
CASE 1:
line$
= "h00000000000999000000009j9000000009i909g9000000009k900000000999000000500000000002000000f" CASE 2:
line$
= "0000000k0000000000000j9c999999999000000000000000b000000999999999g9000000000f048000000000" CASE 3:
line$
= "0d00090k00000000e0000j9c999999999000009000h00000bi00000999999999g900000e000f04800d900000" CASE 4:
line$
= "000009j0k0009999999990090h999f0g0090e090i090099b0c0099009000900d900990999999048000900000" CASE 5:
line$
= "k099j990hfb00i00090000009000900000099999000000999900000009000900000090009000500g000c0002" CASE 6:
line$
= "ake0ahafabad000000000dgagaca0a0a000000i00000a000a0agice00000a000000aha0a0000g63a0faf00aj" CASE 7:
line$
= "9k90909d901j0i000e0i079090909090090909090900909000909009090009090h9090h09090090gf0090cb0" CASE 8:
line$
= "1909999b090790h00000c009090000090090999990900900000909i00e0000g09k09000009090d90f999909j" CASE 9:
line$
= "ak948f00g0h00900f00990j0900000090cc900000090000b999009i00099h9009099900099990bgi000e000d" CASE 10:
line$
= "00f000000000999999999009k009c0090g9jih0090900999999909e00000000b90999999999904800000d000" CASE 11:
line$
= "c0000k0f00g09099j9909009099i99090b9999h999900999909999009999c9999d5999909999029999bb000e" CASE 12:
line$
= "jc00090bfikc000090000g00000g00000090909090909h909990i090000090000050000g0000020f0090h000" CASE 13:
line$
= "999480999999999909999999999d9999999999099999kdce0000igj99999f9999999999b9999999999h99999" CASE 14:
line$
= "000900090d009h909b909009090909f90i9090909090090cd90g00009090909090k9090909095j9000900092" CASE 15:
line$
= "99999f900ak91on900g00e9p7p90900009lqm90900009d9e909090099909090j00i000a0909009a00i09d90h" luggage$
= "h":
DRAW "bm550,370 ":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3"' key green
'
' R O B O T 3.2
' ---------------
' by Robin Ohm
'RULES:
'
'Maybe It's wise to print this information!!!
'
'In this game there are 15 levels. (Maybe a few more or less) If you have
'won all the levels, you win the game.
'To win a level you only have to bring the CROSS to the END using the
'robotarm. To control the robotarm you'll have to write a program.
'If you have won all the levels you win the game.
'
'
'THE COMMANDS YOU CAN GIVE TO THE ROBOTARM:
'
'To give a command to the robotarm you have to press a key. These are the
'keys on the number pad. (The block of numbers on your right)
'
'ALWAYS MAKE SURE NUMLOCK IS ON!!!!!
'-----------------------------------
'
'(arrow keys on the number pad)
'-up: the robotarm moves up one square.
'-down: the robotarm moves down one square.
'-left: the robotarm move one square to the left.
'-right: (guess what) the robotarm moves one square to the right.
'
'(the keys 't' and 'l')
'-take: the robotarm takes what is in front of him. For example a key
'or the cross.
'-loose: the robotarm puts whatever he's carrying in front of him.
' You can also use this to unlock doors and bring the CROSS to END.
'
'First you have to write the programme using the commands above. The robot-
'arm won't immediatly react if you press a key. If you think you're ready
'you just press ENTER and the robotarm starts executing the programme you
'have written.
'
'
'OBJECTS IN THE MAZE:
'
'Wall: A grey square. If you hit a wall you're dead immediatly.
'Mine: If you hit a mine, you're dead too.
'Robotarm: The robotarm you can control. It has light- and dark-blue colors.
'Keys: There are red, yellow, green and blue keys. Keys are used to open
' doors. With a red key you can open red doors, etc... But be careful!!
' You can only use keys one time!!!
' To pick up a key you have to point the hand of the robotarm to the key and
' give the command "take". The arm will now take the key. In the
' bottom-right corner of the screen in the black square you will see a
' key appear. In that square you can see what you are carrying. You can only
' carry one thing at a time.
'Doors: There are red, yellow, green and blue doors and can be opened by a
' key of the same color. To open a door you have to point the hand of the
' robotarm to the door and give te command "loose". The door and the key
' you were carrying are gone and you have returned to the same position.
'Cross: If you want to win the level you'll have to bring the cross to
' the square which says END. You can pick up the cross the same way as you do
' with keys.
'END: This is the point you have to deliver the cross to. To deliver the
' cross you only have to this:
' - pick up the cross (see: Cross)
' - point the hand of the robotarm to END and give the command: "loose". If
' all goes well you have now won the level and can start with the next
' one.
'
'
'TESTLEVEL:
'
'Maybe you don't understand the rules totally, so I'll give you the solution
'to the first level.
'If you still have questions, just send an e-mail to rkohm@euronet.nl
'
'- Start Qbasic and load robotv32.bas
'- Press SHIFT + F5
'- Select "1" from the menu.
'- Give the following commands:
'
' l,l,l,u,u,u,u,u,t,d,d,d,d,r,r,u,lo,d,r,r,d,d,r,r,r,r,r,t,u,u,u,u,u,u,l
' l,l,d,lo,d,t,u,l,l,d,d,l,l,u,lo
'
'(l = arrow left on the number pad)
'(r = arrow right on the number pad)
'(u = arrow up on the number pad)
'(d = arrow down on the number pad)
'
'(t = press the 't' (from 'take') )
'(lo = press the 'l' (from 'loose') )
'
'
'CORRECTING MISTAKES:
'
'If you make a mistake while you are writing the program for the robot-arm,
'you can correct them with the following keys:
'
'ALWAYS USE THE KEYS ON THE NUMBER PAD AND MAKE SURE NUMLOCK IS ON!!!
'--------------------------------------------------------------------
'
'PageUp: Move up one command in the list.
'PageDown: Move down one command in the list.
'Insert: Insert a blank line.
'Delete: Delete the line.
'F1: Forget the old list and start a new one.
'
'NOTE: Deleting and inserting a line takes a few moments, especially on slow
'computers. So only press Insert or Delete once if you want to delete or
'insert only one line!!
'OPEN "c:\qbasic\robot\levels.dat" FOR INPUT AS #1
'LINE INPUT #1, line$
'CLOSE #1
location$
(tempor
) = MID$(line$
, tempor
, 1)
CASE "0": move tempor:
DRAW "bh19p0,15bf19" CASE "1": move tempor:
DRAW "bh19p0,15bf19" DRAW "a2p3,15 c1bl5u19r10d19l10bep1,1a0"'end 1 CASE "2": move tempor:
DRAW "bh19p0,15bf19" DRAW "a0p3,15 c1bl5u19r10d19l10bep1,1a0"'end 2 CASE "3": move tempor:
DRAW "bh19p0,15bf19" DRAW "a1p3,15 c1bl5u19r10d19l10bep1,1a0"'end 3 CASE "4": move tempor:
DRAW "bh19p0,15bf19" DRAW "a3p3,15 c1bl5u19r10d19l10bep1,1a0"'end 4 CASE "5": move tempor:
DRAW "bh19p0,15bf19": handloca
= tempor
DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 CASE "6": move tempor:
DRAW "bh19p0,15bf19": handloca
= tempor
DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 CASE "7": move tempor:
DRAW "bh19p0,15bf19": handloca
= tempor
DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 CASE "8": move tempor:
DRAW "bh19p0,15bf19": handloca
= tempor
DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 CASE "9": move tempor:
DRAW "bh19p0,15bf19":
DRAW "p8,15"'wall CASE "a": move tempor:
DRAW "bh19p0,15bf19" DRAW "p0,0r3u12l6d5r3bu4p0,0uc7u2er2erfrf2r3fc14bu3u2ebf3bleerbg3bd2ffdbh3blddg" CASE "b": move tempor:
DRAW "bh19p0,15bf19" DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3" ' key red CASE "c": move tempor:
DRAW "bh19p0,15bf19" 'door red DRAW "p8,15c7bd19l10u30r20d30nl10bh3u10l14d10r14bu24l14d10r14u10bup4,7bg5p7,7bd15p7,7c8bh6uld" CASE "d": move tempor:
DRAW "bh19p0,15bf19" DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3" ' key blue CASE "e": move tempor:
DRAW "bh19p0,15bf19" 'door blue DRAW "p8,15c7bd19l10u30r20d30nl10bh3u10l14d10r14bu24l14d10r14u10bup1,7bg5p7,7bd15p7,7c8bh6uld" CASE "f": move tempor:
DRAW "bh19p0,15bf19" DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3" ' key yellow CASE "g": move tempor:
DRAW "bh19p0,15bf19" 'door yellow DRAW "p8,15c7bd19l10u30r20d30nl10bh3u10l14d10r14bu24l14d10r14u10bup14,7bg5p7,7bd15p7,7c8bh6uld" CASE "h": move tempor:
DRAW "bh19p0,15bf19" DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3" ' key green CASE "i": move tempor:
DRAW "bh19p0,15bf19" 'door green DRAW "p8,15c7bd19l10u30r20d30nl10bh3u10l14d10r14bu24l14d10r14u10bup2,7bg5p7,7bd15p7,7c8bh6uld" CASE "j": move tempor:
DRAW "bh19p0,15bf19" 'endpoint DRAW "p8,15c4bd10bl18u20r10d4l5d4r4d4l4d4r5d4l10bep4,4gbr13u20r10d20l4u15l2d15l4bep4,4gbr13u20r6f4d12g4l6be4buu10r3d10l3bgp4,4" CASE "k": move tempor:
DRAW "bh19p0,15bf19" 'cross DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4" CASE "l": move tempor:
DRAW "bh19p0,15bf19" DRAW "a0p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 1 CASE "m": move tempor:
DRAW "bh19p0,15bf19" DRAW "a1p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 2 CASE "n": move tempor:
DRAW "bh19p0,15bf19" DRAW "a2p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 3 CASE "o": move tempor:
DRAW "bh19p0,15bf19" DRAW "a3p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 4 CASE "p": move tempor:
DRAW "bh19p0,15bf19" DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 CASE "q": move tempor:
DRAW "bh19p0,15bf19" DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2
again:
COLOR 2:
LOCATE 12, 20:
PRINT "I put the rules in a Sub called hlptext. If you want to" COLOR 4:
LOCATE 15, 20:
PRINT "- Press F10 and Enter (You will return to QBASIC)" PRINT "If you have a question about this game, just send an e-mail to rkohm@euronet.nl" LOCATE 9, 1:
PRINT "http://www.euronet.nl/users/rkohm/" CLS :
INPUT "Enter password: ", password$
PRINT "Password for level 2.": level
= 2 PRINT "Password for level 3.": level
= 3 PRINT "Password for level 4.": level
= 4 PRINT "Password for level 5.": level
= 5 PRINT "Password for level 6.": level
= 6 PRINT "Password for level 7.": level
= 7 PRINT "Password for level 8.": level
= 8 PRINT "Password for level 9.": level
= 9 PRINT "Password for level 10.": level
= 10 PRINT "Password for level 11.": level
= 11 PRINT "Password for level 12.": level
= 12 PRINT "Password for level 13.": level
= 13 PRINT "Password for level 14.": level
= 14 PRINT "Password for level 15.": level
= 15 PRINT "Wrong password. Acces denied."
g$ = "bm" + g$
waitawhile .2
CASE "": times
= times
+ 1 IF location$
(handloca
- 11) <> "0" AND location$
(handloca
) <> "7" THEN dead:
EXIT SUB move handloca:
DRAW "bh19p0,15bf19" handloca = handloca - 11 'new handlocation
SELECT CASE location$
(handloca
+ 11) 'still the old one DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0" 'straight 1 move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca + 11) = "p"
DRAW "a0p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 1 move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca + 11) = "l"
move handloca:
DRAW "bh19p0,15bf19" IF location$
(handloca
- 1) = "q" OR location$
(handloca
- 1) = "l" OR location$
(handloca
- 1) = "o" OR location$
(handloca
- 1) = "4" THEN DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca + 11) = "0"
ELSEIF location$
(handloca
+ 1) = "q" OR location$
(handloca
+ 1) = "n" OR location$
(handloca
+ 1) = "m" OR location$
(handloca
+ 1) = "3" THEN DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca + 11) = "0"
DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca + 11) = "0"
DRAW "a1p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 2 move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca + 11) = "m"
IF location$
(handloca
- 1) <> "0" AND location$
(handloca
) <> "8" THEN dead:
EXIT SUB move handloca:
DRAW "bh19p0,15bf19" handloca = handloca - 1
DRAW "a2p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 3 move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca + 1) = "n"
DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca + 1) = "q"
DRAW "a1p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 2 move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca + 1) = "m"
move handloca:
DRAW "bh19p0,15bf19" IF location$
(handloca
- 11) = "p" OR location$
(handloca
- 11) = "n" OR location$
(handloca
- 11) = "o" OR location$
(handloca
- 11) = "1" THEN DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca + 1) = "0"
ELSEIF location$
(handloca
+ 11) = "p" OR location$
(handloca
+ 11) = "l" OR location$
(handloca
+ 11) = "m" OR location$
(handloca
+ 11) = "2" THEN DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca + 1) = "0"
DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca + 1) = "0"
IF location$
(handloca
+ 11) = "p" OR location$
(handloca
+ 11) = "l" OR location$
(handloca
+ 11) = "m" OR location$
(handloca
+ 11) = "2" THEN DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca + 1) = "0"
DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca + 1) = "0"
IF location$
(handloca
+ 1) <> "0" AND location$
(handloca
) <> "6" THEN dead:
EXIT SUB move handloca:
DRAW "bh19p0,15bf19" handloca = handloca + 1
DRAW "a3p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 4 move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca - 1) = "o"
move handloca:
DRAW "bh19p0,15bf19" IF location$
(handloca
- 11) = "p" OR location$
(handloca
- 11) = "n" OR location$
(handloca
- 11) = "o" OR location$
(handloca
- 11) = "1" THEN DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca - 1) = "0"
ELSEIF location$
(handloca
+ 11) = "p" OR location$
(handloca
+ 11) = "l" OR location$
(handloca
+ 11) = "m" OR location$
(handloca
+ 11) = "2" THEN DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca - 1) = "0"
DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca - 1) = "0"
IF location$
(handloca
+ 11) = "p" OR location$
(handloca
+ 11) = "l" OR location$
(handloca
+ 11) = "m" OR location$
(handloca
+ 11) = "2" THEN DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca - 1) = "0"
DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca - 1) = "0"
DRAW "a0p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 1 move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca - 1) = "l"
DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca - 1) = "q"
IF location$
(handloca
+ 11) <> "0" AND location$
(handloca
) <> "5" THEN dead:
EXIT SUB move handloca:
DRAW "bh19p0,15bf19" handloca = handloca + 11
move handloca:
DRAW "bh19p0,15bf19" IF location$
(handloca
- 1) = "q" OR location$
(handloca
- 1) = "l" OR location$
(handloca
- 1) = "o" OR location$
(handloca
- 1) = "4" THEN DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 location$(handloca) = "8": location$(handloca - 11) = "0"
ELSEIF location$
(handloca
+ 1) = "q" OR location$
(handloca
+ 1) = "n" OR location$
(handloca
+ 1) = "m" OR location$
(handloca
+ 1) = "3" THEN DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 location$(handloca) = "6": location$(handloca - 11) = "0"
DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 location$(handloca) = "5": location$(handloca - 11) = "0"
DRAW "a3p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 4 move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca - 11) = "o"
DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca - 11) = "p"
DRAW "a2p3,15 bl5c1bu19d24r24u10l14u14l10bfp1,1a0"'corner 3 move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 location$(handloca) = "7": location$(handloca - 11) = "n"
move handloca:
DRAW "bh19p0,15bf19" CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "c", "e": dead:
EXIT SUB CASE "g", "i", "j", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 move handloca
- 11:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 waitawhile .5
move handloca
- 11:
DRAW "bh19p0,15bf19" move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 IF location$
(handloca
- 11) <> "0" THEN luggage$ = location$(handloca - 11)
location$(handloca - 11) = "0"
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "c", "e": dead:
EXIT SUB CASE "g", "i", "j", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca
- 1:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 waitawhile .5
move handloca
- 1:
DRAW "bh19p0,15bf19" move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 IF location$
(handloca
- 1) <> "0" THEN luggage$ = location$(handloca - 1)
location$(handloca - 1) = "0"
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "c", "e": dead:
EXIT SUB CASE "g", "i", "j", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 move handloca
+ 11:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 waitawhile .5
move handloca
+ 11:
DRAW "bh19p0,15bf19" move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 IF location$
(handloca
+ 11) <> "0" THEN luggage$ = location$(handloca + 11)
location$(handloca + 11) = "0"
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "c", "e": dead:
EXIT SUB CASE "g", "i", "j", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca
+ 1:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 waitawhile .5
move handloca
+ 1:
DRAW "bh19p0,15bf19" move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 IF location$
(handloca
+ 1) <> "0" THEN luggage$ = location$(handloca + 1)
location$(handloca + 1) = "0"
DRAW "bm550,370bh19p0,15bf19" CASE "b":
DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3"' key red CASE "d":
DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3"' key blue CASE "f":
DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3"' key yellow CASE "h":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3"' key green CASE "k":
DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4"'cross move handloca:
DRAW "bh19p0,15bf19" CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "d": dead:
EXIT SUB CASE "f", "h", "k", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 move handloca
- 11:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 waitawhile .5
DRAW "bm550,370bh19p0,15bf19" move handloca
- 11:
DRAW "bh19p0,15bf19" CASE "b":
DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 11) = luggage$
' key red CASE "d":
DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 11) = luggage$
' key blue CASE "f":
DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 11) = luggage$
' key yellow CASE "h":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 11) = luggage$
' key green CASE "k":
DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4": location$
(handloca
- 11) = luggage$
'cross move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 win ' YOU WIN!!!!
move handloca:
DRAW "bh19p0,15bf19" DRAW "a0bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 1 luggage$ = ""
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "d": dead:
EXIT SUB CASE "f", "h", "k", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca
- 1:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 waitawhile .5
DRAW "bm550,370bh19p0,15bf19" move handloca
- 1:
DRAW "bh19p0,15bf19" CASE "b":
DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 1) = luggage$
' key red CASE "d":
DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 1) = luggage$
' key blue CASE "f":
DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 1) = luggage$
' key yellow CASE "h":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
- 1) = luggage$
' key green CASE "k":
DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4": location$
(handloca
- 1) = luggage$
'cross move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 win ' YOU WIN!!!!
move handloca:
DRAW "bh19p0,15bf19" DRAW "a1bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 2 luggage$ = ""
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "d": dead:
EXIT SUB CASE "f", "h", "k", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a0p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 1 move handloca
+ 11:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 waitawhile .5
DRAW "bm550,370bh19p0,15bf19" move handloca
+ 11:
DRAW "bh19p0,15bf19" CASE "b":
DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 11) = luggage$
' key red CASE "d":
DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 11) = luggage$
' key blue CASE "f":
DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 11) = luggage$
' key yellow CASE "h":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 11) = luggage$
' key green CASE "k":
DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4": location$
(handloca
+ 11) = luggage$
'cross move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 win ' YOU WIN!!!!
move handloca:
DRAW "bh19p0,15bf19" DRAW "a2bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 3 luggage$ = ""
CASE "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "d": dead:
EXIT SUB CASE "f", "h", "k", "l", "m", "n", "o", "p", "q": dead:
EXIT SUB DRAW "a1p3,15bl5bd19c1u38r10d38l10bep1,1a0"'straight 2 move handloca
+ 1:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 waitawhile .5
DRAW "bm550,370bh19p0,15bf19" move handloca
+ 1:
DRAW "bh19p0,15bf19" CASE "b":
DRAW "p8,15c4bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 1) = luggage$
' key red CASE "d":
DRAW "p8,15c1bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 1) = luggage$
' key blue CASE "f":
DRAW "p8,15c14bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 1) = luggage$
' key yellow CASE "h":
DRAW "p8,15c2bd2u8e4h4g4f4bu2ubd5d18u2nr2u2nru2nr3": location$
(handloca
+ 1) = luggage$
' key green CASE "k":
DRAW "p8,15c4bl5g10f5e10f10e5h10e10h5g10h10g5f10brp4,4": location$
(handloca
+ 1) = luggage$
'cross move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 win ' YOU WIN!!!!
move handloca:
DRAW "bh19p0,15bf19" DRAW "a3bd19bl5p3,15c1u15c8h5u5e5d5r10u5f5d5g5l10bup8,8bdc1r10d15l10bep1,1a0"'hand 4 luggage$ = ""
SUB waitawhile
(howlong
) ' wait <howlong> seconds
LOCATE 2, 1:
PRINT "The password for level"; level
+ 1;
"is: ";
level = level + 1
try = 1