Home » Archimedes archive » Acorn User » AU 1997-12.adf » Regulars » StarInfo/Pratt/!Patience/!RunImage
StarInfo/Pratt/!Patience/!RunImage
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-12.adf » Regulars |
Filename: | StarInfo/Pratt/!Patience/!RunImage |
Read OK: | ✔ |
File size: | 2449 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10ON ERROR PROCerror 20 30DIM chunk% 4096 40DIM messagebit% 256 50DIM menu% 128 60DIM progmenu% 128 70DIM sbtext% 128 80DIM card$(56) 90DIM undo(1000,2) 100LIBRARY "<Patience$Dir>.Library" 110 120SYS "Hourglass_On" 130PROCinitialise 140PROCloadtemplates 150PROCicon 160PROCmenu 170PROCstartgame 180REM PROCbanner 190SYS "Hourglass_Smash" 200 210REPEAT 220SYS "WimpExt_PrePoll" 230SYS "Wimp_Poll",,chunk% TO reason% 240SYS "WimpExt_Action",task%,chunk%,reason% 250CASE reason% OF 260REMWHEN 0 : PROCwaitforbanner 270WHEN 1 : PROCredraw 280WHEN 2 : SYS "WimpExt_OpenLinked",,chunk% 290WHEN 3 : SYS "WimpExt_CloseLinked",,chunk% 300WHEN 6 : PROCmousepressed 310WHEN 7 : IF startsave% PROCstartsave ELSE PROCfinishdrag 320WHEN 8 : PROCkeypressed 330WHEN 9 : PROCmenuselection 340WHEN 17,18 : PROCusermessage 350REM WHEN 19 : PROCtransfailed 360ENDCASE 370UNTIL FALSE 380END 390 400SYS "OS_GetEnv" TO env$ 410IF INSTR(env$," -quit ") THEN 420 I%=INSTR(env$,""""):I%=INSTR(env$,"""",I%+1) 430 REPEATI%+=1:UNTIL MID$(env$,I%,1)<>" " OR I%>LENenv$ 440 f$=MID$(env$,I%) 450IF f$<>"" $(chunk%!44)=f$ : PROCdataload 460ENDIF 470 480DEF PROCkeypressed 490 CASE chunk%!24 OF 500 WHEN 13 510 CASE chunk%!0 OF 520 WHEN save% 530 PROCquicksave 540 ENDPROC 550 ENDCASE 560 ENDCASE 570ENDPROC 580 590DEF PROCsendhelp 600help$ = "Patience" 610CASE messagebit%!32 OF 620 WHEN info% : help$="This is the Patience information window" 630 WHEN -2 : help$="This is the Patience icon. Click Select on it to bring up the main window, |Mand menu to bring up the menu" 640 WHEN main% : help$="This is the Main window." 650 CASE messagebit%!36 OF 660 670 ENDCASE 680 ENDCASE 690chunk%!00 = 256 700chunk%!12 = messagebit%!8 710chunk%!16 = &0503 720$(chunk%+20)= help$ 730SYS "Wimp_SendMessage",17,chunk%,chunk%!4 740ENDPROC 750 760DEF PROCaction(action$) 770CASE action$ OF 780 WHEN "saveok" 790 PROCquicksave 800 ENDPROC 810 WHEN "undo" 820 PROCundo 830 ENDPROC 840 WHEN "doaces" 850 PROCdoaces 860 ENDPROC 870 WHEN "restart" 880 PROCstartgame 890 ENDPROC 900 WHEN "try" 910 PROCtry 920 ENDPROC 930 WHEN "texture" 940 PROCtexture 950 ENDPROC 960 WHEN "savepos" 970 PROCquicksave 980 ENDPROC 990 WHEN "findcard" 1000 PROCfindcard 1010 ENDPROC 1020ENDCASE 1030ENDPROC 1040 1050DEF PROCupdatecard(icon%,type$) 1060 number$=LEFT$(type$,1) 1070 IF number$="1" THEN number$="10" 1080 type$=RIGHT$(type$,1) 1090 CASE type$ OF 1100 WHEN "D" : sprite$="dia" 1110 WHEN "H" : sprite$="heart" 1120 WHEN "S" : sprite$="spade" 1130 WHEN "C" : sprite$="club" 1140 ENDCASE 1150 !chunk%=main% 1160 chunk%!4=icon% 1170 SYS "Wimp_GetIconState",,chunk% 1180 chunk%!8=0 1190 chunk%!12=0 1200 IF type$="" THEN $(chunk%!32)="" ELSE $(chunk%!32)="S"+sprite$ 1210 SYS "Wimp_SetIconState",,chunk% 1220 SYS "WimpExt_SetIconStringN",,,main%,icon%,number$ 1230ENDPROC 1240 1250DEF PROCsetuppack 1260 card$()="" 1270 cardno=0 1280 FOR suit=1 TO 4 1290 FOR card=1 TO 13 1300 cardno+=1 1310 CASE card OF 1320 WHEN 1 : card$(cardno)+="A" 1330 WHEN 10 : card$(cardno)+="1" 1340 WHEN 11 : card$(cardno)+="J" 1350 WHEN 12 : card$(cardno)+="Q" 1360 WHEN 13 : card$(cardno)+="K" 1370 OTHERWISE : card$(cardno)+=STR$card 1380 ENDCASE 1390 CASE suit OF 1400 WHEN 1 : card$(cardno)+="D" 1410 WHEN 2 : card$(cardno)+="H" 1420 WHEN 3 : card$(cardno)+="C" 1430 WHEN 4 : card$(cardno)+="S" 1440 ENDCASE 1450 NEXT, 1460ENDPROC 1470 1480DEF PROCshufflepack 1490 SYS "Hourglass_On" 1500 FOR shuffle=1 TO 10000 1510 SWAP card$(RND(52)),card$(RND(52)) 1520 NEXT 1530 SYS "Hourglass_Smash" 1540ENDPROC 1550 1560DEF PROCdragcard(window%,icon%) 1570 dragicon%=icon% 1580 chunk%!0=main% 1590 chunk%!4=icon% 1600 SYS "Wimp_GetIconState",,chunk% 1610 $(chunk%!32)=valid$ 1620 sprite$=RIGHT$(valid$,LENvalid$-1) 1630 SYS "WimpExt_DragIcon",%111001111,wsprites%,main%,icon%,sprite$,0 1640ENDPROC 1650 1660DEF PROCfinishdrag 1670 SYS "Wimp_GetPointerInfo",,chunk% 1680 IF chunk%!12<>main% THEN ENDPROC 1690 IF chunk%!16<1 OR chunk%!16>56 THEN ENDPROC 1700 icon%=chunk%!16 1710 CASE aces% OF 1720 WHEN FALSE 1730 IF LEFT$(card$(dragicon%),1)<>"A" THEN ENDPROC 1740 IF icon%<53 OR icon%>56 ENDPROC 1750 PROCupdatecard(icon%,card$(dragicon%)) 1760 card$(icon%)=card$(dragicon%) 1770 PROCupdatecard(dragicon%,"") 1780 card$(dragicon%)="" 1790 acecount%+=1 1800 IF acecount%=4 THEN aces%=TRUE 1810 SYS "WimpExt_ShadeIcon",,,main%,57,1 1820 SYS "WimpExt_ShadeIcon",,,main%,58,1 1830 ENDPROC 1840 WHEN TRUE 1850 IF card$(icon%)<>"" THEN ENDPROC 1860 IF NOTFNnextcard(icon%,dragicon%) THEN ENDPROC 1870 IF NOTFNsamesuit(icon%,dragicon%) THEN ENDPROC 1880 ENDCASE 1890 cheat%=FALSE 1900 undo(undo,1)=icon% 1910 undo(undo,2)=dragicon% 1920 undo+=1 1930 SYS "WimpExt_ShadeIcon",,,main%,57,0 1940 PROCupdatecard(icon%,card$(dragicon%)) 1950 card$(icon%)=card$(dragicon%) 1960 PROCupdatecard(dragicon%,"") 1970 card$(dragicon%)="" 1980 SYS "WimpExt_SetNumberIcon",,,main%,60,undo-1 1990 ENDCASE 2000 PROCcheckcards 2010ENDPROC 2020 2030DEF PROCstartgame 2040 PROCsetuppack 2050 PROCshufflepack 2060 FOR x=1 TO 52 2070 PROCupdatecard(x,card$(x)) 2080 NEXT 2090 aces%=FALSE 2100 acecount%=0 2110 FOR x=53 TO 56 2120 chunk%!0=main% 2130 chunk%!4=x 2140 SYS "Wimp_GetIconState",,chunk% 2150 $(chunk%!32)="" 2160 SYS "WimpExt_SetIconStringN",,,main%,x,"" 2170 NEXT 2180 undo=1 2190 undo()=0 2200 SYS "WimpExt_ShadeIcon",,,main%,57,1 2210 SYS "WimpExt_ShadeIcon",,,main%,58,0 2220 SYS "WimpExt_SetNumberIcon",,,main%,60,0 2230 cheat%=FALSE 2240 tc=0 2250ENDPROC 2260 2270DEF FNsamesuit(to%,from%) 2280 draggedsuit$=RIGHT$(card$(from%),1) 2290 CASE to% OF 2300 WHEN 1,14,27,40 : nexttosuit$=RIGHT$(card$(((to%-1)/13)+53),1) 2310 OTHERWISE : nexttosuit$=RIGHT$(card$(to%-1),1) 2320 ENDCASE 2330 IF draggedsuit$<>nexttosuit$ THEN =FALSE ELSE =TRUE 2340=FALSE 2350 2360DEF FNnextcard(to%,from%) 2370 draggedno$=LEFT$(card$(from%),1) 2380 CASE draggedno$ OF 2390 WHEN "2" : IF (to%=1 OR to%=14 OR to%=27 OR to%=40) THEN =TRUE ELSE =FALSE 2400 WHEN "3","4","5","6","7","8","9" 2410 next$=STR$(VALdraggedno$-1) 2420 WHEN "1" : next$="9" 2430 WHEN "J" : next$="1" 2440 WHEN "Q" : next$="J" 2450 WHEN "K" : next$="Q" 2460 ENDCASE 2470 nextcard$=LEFT$(card$(to%-1),1) 2480 IF nextcard$<>next$ THEN =FALSE ELSE =TRUE 2490=FALSE 2500 2510DEF PROCcheckcards 2520 IF card$(13)<>"" OR card$(26)<>"" OR card$(39)<>"" OR card$(52)<>"" ENDPROC 2530 FOR suit=1 TO 4 2540 suit$=RIGHT$(card$(suit+52)) 2550 FOR card=1 TO 12 2560 check$=card$(((suit-1)*13)+card) 2570 IF RIGHT$(check$,1)<>suit$ ENDPROC 2580 CASE card OF 2590 WHEN 1,2,3,4,5,6,7,8 : number$=STR$(card+1) 2600 WHEN 9 : number$="1" 2610 WHEN 10 : number$="J" 2620 WHEN 11 : number$="Q" 2630 WHEN 12 : number$="K" 2640 ENDCASE 2650 IF LEFT$(check$,1)<>number$ ENDPROC 2660 NEXT, 2670 SYS "Wimp_ReportError"," Congratulations. You have completed the game in "+STR$undo+" moves.",&14,"Message From Patience" 2680 !chunk%=main% 2690 SYS "WimpExt_CloseLinked",,chunk% 2700 PROCstartgame 2710ENDPROC 2720 2730DEF PROCundo 2740 IF undo=1 ENDPROC 2750 undo-=1 2760 IF undo=1 THEN SYS "WimpExt_ShadeIcon",,,main%,57,1 2770 SYS "WimpExt_SetNumberIcon",,,main%,60,undo-1 2780 PROCupdatecard(undo(undo,2),card$(undo(undo,1))) 2790 PROCupdatecard(undo(undo,1),"") 2800 card$(undo(undo,2))=card$(undo(undo,1)) 2810 card$(undo(undo,1))="" 2820ENDPROC 2830 2840DEF PROCdoaces 2850 counter=1 2860 FOR x=1 TO 52 2870 CASE LEFT$(card$(x),1) OF 2880 WHEN "A" 2890 PROCupdatecard(counter+52,card$(x)) 2900 PROCupdatecard(x,"") 2910 card$(counter+52)=card$(x) 2920 card$(x)="" 2930 counter+=1 2940 ENDCASE 2950 NEXT 2960 aces%=TRUE 2970 SYS "WimpExt_ShadeIcon",,,main%,57,1 2980 SYS "WimpExt_ShadeIcon",,,main%,58,1 2990ENDPROC 3000 3010DEF PROCtry 3020 empty=FNempty 3030 IF empty=-1 THEN ENDPROC 3040 tc+=1 3050 CASE LEFT$(card$(empty-1),1) OF 3060 WHEN "2","3","4","5","6","7","8" 3070 nextcard$=STR$(VAL(LEFT$(card$(empty-1),1))+1)+RIGHT$(card$(empty-1),1) 3080 WHEN "9" 3090 nextcard$="1"+RIGHT$(card$(empty-1),1) 3100 WHEN "1" 3110 nextcard$="J"+RIGHT$(card$(empty-1),1) 3120 WHEN "J" 3130 nextcard$="Q"+RIGHT$(card$(empty-1),1) 3140 WHEN "Q" 3150 nextcard$="K"+RIGHT$(card$(empty-1),1) 3160 ENDCASE 3170 IF empty=1 OR empty=14 OR empty=27 OR empty=40 nextcard$="2"+RIGHT$(card$(((empty-1)/13)+53),1) 3180 nextcard=-1 3190 FOR x=1 TO 52 3200 IF card$(x)=nextcard$ THEN nextcard=x 3210 NEXT 3220 IF nextcard=-1 ENDPROC 3230 undo(undo,1)=empty 3240 undo(undo,2)=nextcard 3250 undo+=1 3260 SYS "WimpExt_ShadeIcon",,,main%,57,0 3270 PROCupdatecard(empty,card$(nextcard)) 3280 PROCupdatecard(nextcard,"") 3290 card$(empty)=card$(nextcard) 3300 card$(nextcard)="" 3310 SYS "WimpExt_SetNumberIcon",,,main%,60,undo-1 3320 IF tc<1000 PROCtry 3330ENDPROC 3340 3350DEF FNempty 3360 FOR x=1 TO 52 3370 CASE card$(x) OF 3380 WHEN "" 3390 IF x=1 OR x=14 OR x=27 OR x=40 THEN =x 3400 IF LEFT$(card$(x-1),1)="" THEN NEXT 3410 IF LEFT$(card$(x-1),1)<>"K" THEN =x 3420 ENDCASE 3430 NEXT 3440=-1 3450 3460DEF PROCtexture 3470 CASE texture% OF 3480 WHEN TRUE 3490 texture%=FALSE 3500 SYS "Wimp_ForceRedraw",-1,0,0,&7FFFFFFF,&7FFFFFFF 3510 WHEN FALSE 3520 texture%=TRUE 3530 SYS "Wimp_ForceRedraw",-1,0,0,&7FFFFFFF,&7FFFFFFF 3540 ENDCASE 3550ENDPROC 3560 3570DEF PROCsaveit 3580 SYS "WimpExt_GetIcon",,,options%,4 TO selected% 3590 file%=OPENOUT($sbtext%) 3600 FOR x=1 TO 56 3610 PRINT#file%,card$(x) 3620 NEXT 3630 CASE selected% OF 3640 WHEN 1 3650 BPUT#file%,1 3660 BPUT#file%,undo 3670 FOR x=1 TO undo-1 3680 BPUT#file%,undo(x,1) 3690 BPUT#file%,undo(x,2) 3700 NEXT 3710 WHEN 0 3720 BPUT#file%,0 3730 ENDCASE 3740 CLOSE#file% 3750 SYS "OS_File",18,$sbtext%,&325 3760 startsave%=FALSE 3770ENDPROC 3780 3790DEF PROCdataload 3800 IF chunk%!40<>805 ENDPROC 3810 ptr=44 3820 name$="" 3830 WHILE chunk%?ptr<>0 3840 name$+=CHR$(chunk%?ptr) 3850 ptr+=1 3860 ENDWHILE 3870 card$()="" 3880 cheat%=FALSE 3890 aces%=TRUE 3900 acecount%=4 3910 tc=0 3920 file%=OPENIN(name$) 3930 FOR x=1 TO 56 3940 INPUT#file%,card$(x) 3950 PROCupdatecard(x,card$(x)) 3960 NEXT 3970 qundo=BGET#file% 3980 undo()=0 3990 undo=1 4000 CASE qundo OF 4010 WHEN 1 4020 nou=BGET#file% 4030 undo=nou 4040 SYS "WimpExt_SetNumberIcon",,,main%,60,undo-1 4050 FOR x=1 TO undo-1 4060 undo(x,1)=BGET#file% 4070 undo(x,2)=BGET#file% 4080 NEXT 4090 SYS "WimpExt_ShadeIcon",,,main%,57,0 4100 SYS "WimpExt_ShadeIcon",,,main%,58,1 4110 WHEN 0 4120 undo=1 4130 undo()=0 4140 SYS "WimpExt_ShadeIcon",,,main%,57,1 4150 SYS "WimpExt_ShadeIcon",,,main%,58,0 4160 SYS "WimpExt_SetNumberIcon",,,main%,60,0 4170 ENDCASE 4180 CLOSE#file% 4190ENDPROC 4200 4210DEF PROCfindcard 4220 !chunk%=main% 4230 chunk%!4=5 4240 SYS "Wimp_GetIconState",,chunk% 4250 MOUSE TO 4260 SYS "WimpExt_ShadeIcon",,,main%,5,1 4270 SYS "WimpExt_ShadeIcon",,,main%,5,0 4280ENDPROC
� � �error � chunk% 4096 (� messagebit% 256 2� menu% 128 <� progmenu% 128 F� sbtext% 128 P� card$(56) Z� undo(1000,2) dț "<Patience$Dir>.Library" n xș "Hourglass_On" ��initialise ��loadtemplates � �icon � �menu ��startgame �� PROCbanner �ș "Hourglass_Smash" � �� �ș "WimpExt_PrePoll" �$ș "Wimp_Poll",,chunk% � reason% �,ș "WimpExt_Action",task%,chunk%,reason% �Ȏ reason% � �WHEN 0 : PROCwaitforbanner � 1 : �redraw )� 2 : ș "WimpExt_OpenLinked",,chunk% "*� 3 : ș "WimpExt_CloseLinked",,chunk% ,� 6 : �mousepressed 6/� 7 : � startsave% �startsave � �finishdrag @� 8 : �keypressed J� 9 : �menuselection T� 17,18 : �usermessage ^� WHEN 19 : PROCtransfailed h� r� � |� � �ș "OS_GetEnv" � env$ �� �env$," -quit ") � �' I%=�env$,""""):I%=�env$,"""",I%+1) �) �I%+=1:� �env$,I%,1)<>" " � I%>�env$ � f$=�env$,I%) �(� f$<>"" $(chunk%!44)=f$ : �dataload �� � �� �keypressed � Ȏ chunk%!24 � � � 13 � Ȏ chunk%!0 � � save% �quicksave � & � 0 � :� D N� �sendhelp Xhelp$ = "Patience" bȎ messagebit%!32 � l> � info% : help$="This is the Patience information window" v~ � -2 : help$="This is the Patience icon. Click Select on it to bring up the main window, |Mand menu to bring up the menu" �/ � main% : help$="This is the Main window." � Ȏ messagebit%!36 � � � � � � �chunk%!00 = 256 �chunk%!12 = messagebit%!8 �chunk%!16 = &0503 �$(chunk%+20)= help$ �,ș "Wimp_SendMessage",17,chunk%,chunk%!4 �� � �� �action(action$) Ȏ action$ � � "saveok" �quicksave � * � "undo" 4 �undo > � H � "doaces" R �doaces \ � f � "restart" p �startgame z � � � "try" � �try � � � � "texture" � �texture � � � � "savepos" � �quicksave � � � � "findcard" � �findcard � � �� � � �updatecard(icon%,type$) $ number$=�type$,1) .! � number$="1" � number$="10" 8 type$=�type$,1) B Ȏ type$ � L � "D" : sprite$="dia" V � "H" : sprite$="heart" ` � "S" : sprite$="spade" j � "C" : sprite$="club" t � ~ !chunk%=main% � chunk%!4=icon% �# ș "Wimp_GetIconState",,chunk% � chunk%!8=0 � chunk%!12=0 �< � type$="" � $(chunk%!32)="" � $(chunk%!32)="S"+sprite$ �# ș "Wimp_SetIconState",,chunk% �6 ș "WimpExt_SetIconStringN",,,main%,icon%,number$ �� � �� �setuppack � card$()="" � cardno=0 � suit=1 � 4 � card=1 � 13 cardno+=1 Ȏ card � (# � 1 : card$(cardno)+="A" 2# � 10 : card$(cardno)+="1" <# � 11 : card$(cardno)+="J" F# � 12 : card$(cardno)+="Q" P# � 13 : card$(cardno)+="K" Z : card$(cardno)+=�card d � n Ȏ suit � x � 1 : card$(cardno)+="D" � � 2 : card$(cardno)+="H" � � 3 : card$(cardno)+="C" � � 4 : card$(cardno)+="S" � � � �, �� � �� �shufflepack � ș "Hourglass_On" � � shuffle=1 � 10000 �" Ȕ card$(�(52)),card$(�(52)) � � � ș "Hourglass_Smash" � � �dragcard(window%,icon%) " dragicon%=icon% , chunk%!0=main% 6 chunk%!4=icon% @# ș "Wimp_GetIconState",,chunk% J $(chunk%!32)=valid$ T sprite$=�valid$,�valid$-1) ^E ș "WimpExt_DragIcon",%111001111,wsprites%,main%,icon%,sprite$,0 h� r |� �finishdrag �% ș "Wimp_GetPointerInfo",,chunk% � � chunk%!12<>main% � � �% � chunk%!16<1 � chunk%!16>56 � � � icon%=chunk%!16 � Ȏ aces% � � � � �& � �card$(dragicon%),1)<>"A" � � � � icon%<53 � icon%>56 � �* �updatecard(icon%,card$(dragicon%)) �$ card$(icon%)=card$(dragicon%) � �updatecard(dragicon%,"") � card$(dragicon%)="" � acecount%+=1 � acecount%=4 � aces%=� * ș "WimpExt_ShadeIcon",,,main%,57,1 * ș "WimpExt_ShadeIcon",,,main%,58,1 & � 0 � � : � card$(icon%)<>"" � � D( � ��nextcard(icon%,dragicon%) � � N( � ��samesuit(icon%,dragicon%) � � X � b cheat%=� l undo(undo,1)=icon% v undo(undo,2)=dragicon% � undo+=1 �* ș "WimpExt_ShadeIcon",,,main%,57,0 �* �updatecard(icon%,card$(dragicon%)) �$ card$(icon%)=card$(dragicon%) � �updatecard(dragicon%,"") � card$(dragicon%)="" �3 ș "WimpExt_SetNumberIcon",,,main%,60,undo-1 � � � �checkcards �� � �� �startgame � �setuppack �shufflepack � x=1 � 52 �updatecard(x,card$(x)) � * aces%=� 4 acecount%=0 > � x=53 � 56 H chunk%!0=main% R chunk%!4=x \$ ș "Wimp_GetIconState",,chunk% f $(chunk%!32)="" p. ș "WimpExt_SetIconStringN",,,main%,x,"" z � � undo=1 � undo()=0 �( ș "WimpExt_ShadeIcon",,,main%,57,1 �( ș "WimpExt_ShadeIcon",,,main%,58,0 �, ș "WimpExt_SetNumberIcon",,,main%,60,0 � cheat%=� � tc=0 �� � �� �samesuit(to%,from%) �" draggedsuit$=�card$(from%),1) � Ȏ to% � �; � 1,14,27,40 : nexttosuit$=�card$(((to%-1)/13)+53),1) , : nexttosuit$=�card$(to%-1),1) � * � draggedsuit$<>nexttosuit$ � =� � =� $=� . 8� �nextcard(to%,from%) B draggedno$=�card$(from%),1) L Ȏ draggedno$ � V< � "2" : � (to%=1 � to%=14 � to%=27 � to%=40) � =� � =� `# � "3","4","5","6","7","8","9" j next$=�(�draggedno$-1) t � "1" : next$="9" ~ � "J" : next$="1" � � "Q" : next$="J" � � "K" : next$="Q" � � � nextcard$=�card$(to%-1),1) �! � nextcard$<>next$ � =� � =� �=� � �� �checkcards �F � card$(13)<>"" � card$(26)<>"" � card$(39)<>"" � card$(52)<>"" � � � suit=1 � 4 � suit$=�card$(suit+52)) � � card=1 � 12 ' check$=card$(((suit-1)*13)+card) � �check$,1)<>suit$ � Ȏ card � - � 1,2,3,4,5,6,7,8 : number$=�(card+1) ( � 9 : number$="1" 2 � 10 : number$="J" < � 11 : number$="Q" F � 12 : number$="K" P � Z � �check$,1)<>number$ � d �, n} ș "Wimp_ReportError"," Congratulations. You have completed the game in "+�undo+" moves.",&14,"Message From Patience" x !chunk%=main% �% ș "WimpExt_CloseLinked",,chunk% � �startgame �� � �� �undo � � undo=1 � � undo-=1 �3 � undo=1 � ș "WimpExt_ShadeIcon",,,main%,57,1 �1 ș "WimpExt_SetNumberIcon",,,main%,60,undo-1 �2 �updatecard(undo(undo,2),card$(undo(undo,1))) �! �updatecard(undo(undo,1),"") �, card$(undo(undo,2))=card$(undo(undo,1)) � card$(undo(undo,1))="" � � �doaces " counter=1 , � x=1 � 52 6 Ȏ �card$(x),1) � @ � "A" J( �updatecard(counter+52,card$(x)) T �updatecard(x,"") ^" card$(counter+52)=card$(x) h card$(x)="" r counter+=1 | � � � � aces%=� �( ș "WimpExt_ShadeIcon",,,main%,57,1 �( ș "WimpExt_ShadeIcon",,,main%,58,1 �� � � � �try � empty=�empty � � empty=-1 � � � tc+=1 � Ȏ �card$(empty-1),1) � �# � "2","3","4","5","6","7","8" �> nextcard$=�(�(�card$(empty-1),1))+1)+�card$(empty-1),1) � "9" ' nextcard$="1"+�card$(empty-1),1) � "1" &' nextcard$="J"+�card$(empty-1),1) 0 � "J" :' nextcard$="Q"+�card$(empty-1),1) D � "Q" N' nextcard$="K"+�card$(empty-1),1) X � bZ � empty=1 � empty=14 � empty=27 � empty=40 nextcard$="2"+�card$(((empty-1)/13)+53),1) l nextcard=-1 v � x=1 � 52 �' � card$(x)=nextcard$ � nextcard=x � � � � nextcard=-1 � � undo(undo,1)=empty � undo(undo,2)=nextcard � undo+=1 �* ș "WimpExt_ShadeIcon",,,main%,57,0 �' �updatecard(empty,card$(nextcard)) � �updatecard(nextcard,"") �! card$(empty)=card$(nextcard) � card$(nextcard)="" �3 ș "WimpExt_SetNumberIcon",,,main%,60,undo-1 � � tc<1000 �try � � �empty � x=1 � 52 * Ȏ card$(x) � 4 � "" >' � x=1 � x=14 � x=27 � x=40 � =x H � �card$(x-1),1)="" � � R" � �card$(x-1),1)<>"K" � =x \ � f � p=-1 z �� �texture � Ȏ texture% � � � � � texture%=� �7 ș "Wimp_ForceRedraw",-1,0,0,&7FFFFFFF,&7FFFFFFF � � � � texture%=� �7 ș "Wimp_ForceRedraw",-1,0,0,&7FFFFFFF,&7FFFFFFF � � �� � � � �saveit �2 ș "WimpExt_GetIcon",,,options%,4 � selected% file%=�($sbtext%) � x=1 � 56 �#file%,card$(x) $ � . Ȏ selected% � 8 � 1 B �#file%,1 L �#file%,undo V � x=1 � undo-1 ` �#file%,undo(x,1) j �#file%,undo(x,2) t � ~ � 0 � �#file%,0 � � � �#file% �" ș "OS_File",18,$sbtext%,&325 � startsave%=� �� � �� �dataload � � chunk%!40<>805 � � ptr=44 � name$="" � ȕ chunk%?ptr<>0 name$+=�(chunk%?ptr) ptr+=1 � card$()="" ( cheat%=� 2 aces%=� < acecount%=4 F tc=0 P file%=�(name$) Z � x=1 � 56 d �#file%,card$(x) n �updatecard(x,card$(x)) x � � qundo=�#file% � undo()=0 � undo=1 � Ȏ qundo � � � 1 � nou=�#file% � undo=nou �4 ș "WimpExt_SetNumberIcon",,,main%,60,undo-1 � � x=1 � undo-1 � undo(x,1)=�#file% � undo(x,2)=�#file% � � �+ ș "WimpExt_ShadeIcon",,,main%,57,0 + ș "WimpExt_ShadeIcon",,,main%,58,1 � 0 undo=1 " undo()=0 ,+ ș "WimpExt_ShadeIcon",,,main%,57,1 6+ ș "WimpExt_ShadeIcon",,,main%,58,0 @/ ș "WimpExt_SetNumberIcon",,,main%,60,0 J � T �#file% ^� h r� �findcard | !chunk%=main% � chunk%!4=5 �# ș "Wimp_GetIconState",,chunk% � ȗ � �' ș "WimpExt_ShadeIcon",,,main%,5,1 �' ș "WimpExt_ShadeIcon",,,main%,5,0 �� �
00000000 0d 00 0a 0e ee 20 85 20 f2 65 72 72 6f 72 0d 00 |..... . .error..| 00000010 14 04 0d 00 1e 16 de 20 20 20 20 20 20 63 68 75 |....... chu| 00000020 6e 6b 25 20 34 30 39 36 0d 00 28 16 de 20 6d 65 |nk% 4096..(.. me| 00000030 73 73 61 67 65 62 69 74 25 20 20 32 35 36 0d 00 |ssagebit% 256..| 00000040 32 16 de 20 20 20 20 20 20 20 6d 65 6e 75 25 20 |2.. menu% | 00000050 20 31 32 38 0d 00 3c 16 de 20 20 20 70 72 6f 67 | 128..<.. prog| 00000060 6d 65 6e 75 25 20 20 31 32 38 0d 00 46 16 de 20 |menu% 128..F.. | 00000070 20 20 20 20 73 62 74 65 78 74 25 20 20 31 32 38 | sbtext% 128| 00000080 0d 00 50 13 de 20 20 20 20 20 63 61 72 64 24 28 |..P.. card$(| 00000090 35 36 29 0d 00 5a 16 de 20 20 20 20 20 75 6e 64 |56)..Z.. und| 000000a0 6f 28 31 30 30 30 2c 32 29 0d 00 64 1f c8 9b 20 |o(1000,2)..d... | 000000b0 22 3c 50 61 74 69 65 6e 63 65 24 44 69 72 3e 2e |"<Patience$Dir>.| 000000c0 4c 69 62 72 61 72 79 22 0d 00 6e 04 0d 00 78 15 |Library"..n...x.| 000000d0 c8 99 20 22 48 6f 75 72 67 6c 61 73 73 5f 4f 6e |.. "Hourglass_On| 000000e0 22 0d 00 82 0f f2 69 6e 69 74 69 61 6c 69 73 65 |".....initialise| 000000f0 0d 00 8c 12 f2 6c 6f 61 64 74 65 6d 70 6c 61 74 |.....loadtemplat| 00000100 65 73 0d 00 96 09 f2 69 63 6f 6e 0d 00 a0 09 f2 |es.....icon.....| 00000110 6d 65 6e 75 0d 00 aa 0e f2 73 74 61 72 74 67 61 |menu.....startga| 00000120 6d 65 0d 00 b4 10 f4 20 50 52 4f 43 62 61 6e 6e |me..... PROCbann| 00000130 65 72 0d 00 be 18 c8 99 20 22 48 6f 75 72 67 6c |er...... "Hourgl| 00000140 61 73 73 5f 53 6d 61 73 68 22 0d 00 c8 04 0d 00 |ass_Smash"......| 00000150 d2 05 f5 0d 00 dc 18 c8 99 20 22 57 69 6d 70 45 |......... "WimpE| 00000160 78 74 5f 50 72 65 50 6f 6c 6c 22 0d 00 e6 24 c8 |xt_PrePoll"...$.| 00000170 99 20 22 57 69 6d 70 5f 50 6f 6c 6c 22 2c 2c 63 |. "Wimp_Poll",,c| 00000180 68 75 6e 6b 25 20 b8 20 72 65 61 73 6f 6e 25 0d |hunk% . reason%.| 00000190 00 f0 2c c8 99 20 22 57 69 6d 70 45 78 74 5f 41 |..,.. "WimpExt_A| 000001a0 63 74 69 6f 6e 22 2c 74 61 73 6b 25 2c 63 68 75 |ction",task%,chu| 000001b0 6e 6b 25 2c 72 65 61 73 6f 6e 25 0d 00 fa 10 c8 |nk%,reason%.....| 000001c0 8e 20 72 65 61 73 6f 6e 25 20 ca 0d 01 04 1f f4 |. reason% ......| 000001d0 57 48 45 4e 20 30 20 3a 20 50 52 4f 43 77 61 69 |WHEN 0 : PROCwai| 000001e0 74 66 6f 72 62 61 6e 6e 65 72 0d 01 0e 11 c9 20 |tforbanner..... | 000001f0 31 20 3a 20 f2 72 65 64 72 61 77 0d 01 18 29 c9 |1 : .redraw...).| 00000200 20 32 20 3a 20 c8 99 20 22 57 69 6d 70 45 78 74 | 2 : .. "WimpExt| 00000210 5f 4f 70 65 6e 4c 69 6e 6b 65 64 22 2c 2c 63 68 |_OpenLinked",,ch| 00000220 75 6e 6b 25 0d 01 22 2a c9 20 33 20 3a 20 c8 99 |unk%.."*. 3 : ..| 00000230 20 22 57 69 6d 70 45 78 74 5f 43 6c 6f 73 65 4c | "WimpExt_CloseL| 00000240 69 6e 6b 65 64 22 2c 2c 63 68 75 6e 6b 25 0d 01 |inked",,chunk%..| 00000250 2c 17 c9 20 36 20 3a 20 f2 6d 6f 75 73 65 70 72 |,.. 6 : .mousepr| 00000260 65 73 73 65 64 0d 01 36 2f c9 20 37 20 3a 20 e7 |essed..6/. 7 : .| 00000270 20 73 74 61 72 74 73 61 76 65 25 20 f2 73 74 61 | startsave% .sta| 00000280 72 74 73 61 76 65 20 8b 20 f2 66 69 6e 69 73 68 |rtsave . .finish| 00000290 64 72 61 67 0d 01 40 15 c9 20 38 20 3a 20 f2 6b |drag..@.. 8 : .k| 000002a0 65 79 70 72 65 73 73 65 64 0d 01 4a 18 c9 20 39 |eypressed..J.. 9| 000002b0 20 3a 20 f2 6d 65 6e 75 73 65 6c 65 63 74 69 6f | : .menuselectio| 000002c0 6e 0d 01 54 1a c9 20 31 37 2c 31 38 20 3a 20 f2 |n..T.. 17,18 : .| 000002d0 75 73 65 72 6d 65 73 73 61 67 65 0d 01 5e 1f f4 |usermessage..^..| 000002e0 20 57 48 45 4e 20 31 39 20 3a 20 50 52 4f 43 74 | WHEN 19 : PROCt| 000002f0 72 61 6e 73 66 61 69 6c 65 64 0d 01 68 05 cb 0d |ransfailed..h...| 00000300 01 72 07 fd 20 a3 0d 01 7c 05 e0 0d 01 86 04 0d |.r.. ...|.......| 00000310 01 90 19 c8 99 20 22 4f 53 5f 47 65 74 45 6e 76 |..... "OS_GetEnv| 00000320 22 20 b8 20 65 6e 76 24 0d 01 9a 18 e7 20 a7 65 |" . env$..... .e| 00000330 6e 76 24 2c 22 20 2d 71 75 69 74 20 22 29 20 8c |nv$," -quit ") .| 00000340 0d 01 a4 27 20 49 25 3d a7 65 6e 76 24 2c 22 22 |...' I%=.env$,""| 00000350 22 22 29 3a 49 25 3d a7 65 6e 76 24 2c 22 22 22 |""):I%=.env$,"""| 00000360 22 2c 49 25 2b 31 29 0d 01 ae 29 20 f5 49 25 2b |",I%+1)...) .I%+| 00000370 3d 31 3a fd 20 c1 65 6e 76 24 2c 49 25 2c 31 29 |=1:. .env$,I%,1)| 00000380 3c 3e 22 20 22 20 84 20 49 25 3e a9 65 6e 76 24 |<>" " . I%>.env$| 00000390 0d 01 b8 11 20 66 24 3d c1 65 6e 76 24 2c 49 25 |.... f$=.env$,I%| 000003a0 29 0d 01 c2 28 e7 20 66 24 3c 3e 22 22 20 24 28 |)...(. f$<>"" $(| 000003b0 63 68 75 6e 6b 25 21 34 34 29 3d 66 24 20 3a 20 |chunk%!44)=f$ : | 000003c0 f2 64 61 74 61 6c 6f 61 64 0d 01 cc 05 cd 0d 01 |.dataload.......| 000003d0 d6 04 0d 01 e0 11 dd 20 f2 6b 65 79 70 72 65 73 |....... .keypres| 000003e0 73 65 64 0d 01 ea 13 20 c8 8e 20 63 68 75 6e 6b |sed.... .. chunk| 000003f0 25 21 32 34 20 ca 0d 01 f4 0a 20 20 c9 20 31 33 |%!24 ..... . 13| 00000400 0d 01 fe 14 20 20 20 c8 8e 20 63 68 75 6e 6b 25 |.... .. chunk%| 00000410 21 30 20 ca 0d 02 08 0f 20 20 20 20 c9 20 73 61 |!0 ..... . sa| 00000420 76 65 25 0d 02 12 13 20 20 20 20 20 f2 71 75 69 |ve%.... .qui| 00000430 63 6b 73 61 76 65 0d 02 1c 0a 20 20 20 20 20 e1 |cksave.... .| 00000440 0d 02 26 08 20 20 20 cb 0d 02 30 06 20 cb 0d 02 |..&. ...0. ...| 00000450 3a 05 e1 0d 02 44 04 0d 02 4e 0f dd 20 f2 73 65 |:....D...N.. .se| 00000460 6e 64 68 65 6c 70 0d 02 58 16 68 65 6c 70 24 20 |ndhelp..X.help$ | 00000470 3d 20 22 50 61 74 69 65 6e 63 65 22 0d 02 62 17 |= "Patience"..b.| 00000480 c8 8e 20 6d 65 73 73 61 67 65 62 69 74 25 21 33 |.. messagebit%!3| 00000490 32 20 ca 0d 02 6c 3e 20 c9 20 69 6e 66 6f 25 20 |2 ...l> . info% | 000004a0 3a 20 68 65 6c 70 24 3d 22 54 68 69 73 20 69 73 |: help$="This is| 000004b0 20 74 68 65 20 50 61 74 69 65 6e 63 65 20 69 6e | the Patience in| 000004c0 66 6f 72 6d 61 74 69 6f 6e 20 77 69 6e 64 6f 77 |formation window| 000004d0 22 0d 02 76 7e 20 c9 20 2d 32 20 3a 20 68 65 6c |"..v~ . -2 : hel| 000004e0 70 24 3d 22 54 68 69 73 20 69 73 20 74 68 65 20 |p$="This is the | 000004f0 50 61 74 69 65 6e 63 65 20 69 63 6f 6e 2e 20 43 |Patience icon. C| 00000500 6c 69 63 6b 20 53 65 6c 65 63 74 20 6f 6e 20 69 |lick Select on i| 00000510 74 20 74 6f 20 62 72 69 6e 67 20 75 70 20 74 68 |t to bring up th| 00000520 65 20 6d 61 69 6e 20 77 69 6e 64 6f 77 2c 20 7c |e main window, || 00000530 4d 61 6e 64 20 6d 65 6e 75 20 74 6f 20 62 72 69 |Mand menu to bri| 00000540 6e 67 20 75 70 20 74 68 65 20 6d 65 6e 75 22 0d |ng up the menu".| 00000550 02 80 2f 20 c9 20 6d 61 69 6e 25 20 3a 20 68 65 |../ . main% : he| 00000560 6c 70 24 3d 22 54 68 69 73 20 69 73 20 74 68 65 |lp$="This is the| 00000570 20 4d 61 69 6e 20 77 69 6e 64 6f 77 2e 22 0d 02 | Main window."..| 00000580 8a 19 20 20 c8 8e 20 6d 65 73 73 61 67 65 62 69 |.. .. messagebi| 00000590 74 25 21 33 36 20 ca 0d 02 94 04 0d 02 9e 07 20 |t%!36 ......... | 000005a0 20 cb 0d 02 a8 06 20 cb 0d 02 b2 13 63 68 75 6e | ..... .....chun| 000005b0 6b 25 21 30 30 20 3d 20 32 35 36 0d 02 bc 1d 63 |k%!00 = 256....c| 000005c0 68 75 6e 6b 25 21 31 32 20 3d 20 6d 65 73 73 61 |hunk%!12 = messa| 000005d0 67 65 62 69 74 25 21 38 0d 02 c6 15 63 68 75 6e |gebit%!8....chun| 000005e0 6b 25 21 31 36 20 3d 20 26 30 35 30 33 0d 02 d0 |k%!16 = &0503...| 000005f0 17 24 28 63 68 75 6e 6b 25 2b 32 30 29 3d 20 68 |.$(chunk%+20)= h| 00000600 65 6c 70 24 0d 02 da 2c c8 99 20 22 57 69 6d 70 |elp$...,.. "Wimp| 00000610 5f 53 65 6e 64 4d 65 73 73 61 67 65 22 2c 31 37 |_SendMessage",17| 00000620 2c 63 68 75 6e 6b 25 2c 63 68 75 6e 6b 25 21 34 |,chunk%,chunk%!4| 00000630 0d 02 e4 05 e1 0d 02 ee 04 0d 02 f8 16 dd 20 f2 |.............. .| 00000640 61 63 74 69 6f 6e 28 61 63 74 69 6f 6e 24 29 0d |action(action$).| 00000650 03 02 10 c8 8e 20 61 63 74 69 6f 6e 24 20 ca 0d |..... action$ ..| 00000660 03 0c 0f 20 c9 20 22 73 61 76 65 6f 6b 22 0d 03 |... . "saveok"..| 00000670 16 10 20 20 f2 71 75 69 63 6b 73 61 76 65 0d 03 |.. .quicksave..| 00000680 20 07 20 20 e1 0d 03 2a 0d 20 c9 20 22 75 6e 64 | . ...*. . "und| 00000690 6f 22 0d 03 34 0b 20 20 f2 75 6e 64 6f 0d 03 3e |o"..4. .undo..>| 000006a0 07 20 20 e1 0d 03 48 0f 20 c9 20 22 64 6f 61 63 |. ...H. . "doac| 000006b0 65 73 22 0d 03 52 0d 20 20 f2 64 6f 61 63 65 73 |es"..R. .doaces| 000006c0 0d 03 5c 07 20 20 e1 0d 03 66 10 20 c9 20 22 72 |..\. ...f. . "r| 000006d0 65 73 74 61 72 74 22 0d 03 70 10 20 20 f2 73 74 |estart"..p. .st| 000006e0 61 72 74 67 61 6d 65 0d 03 7a 07 20 20 e1 0d 03 |artgame..z. ...| 000006f0 84 0c 20 c9 20 22 74 72 79 22 0d 03 8e 0a 20 20 |.. . "try".... | 00000700 f2 74 72 79 0d 03 98 07 20 20 e1 0d 03 a2 10 20 |.try.... ..... | 00000710 c9 20 22 74 65 78 74 75 72 65 22 0d 03 ac 0e 20 |. "texture".... | 00000720 20 f2 74 65 78 74 75 72 65 0d 03 b6 07 20 20 e1 | .texture.... .| 00000730 0d 03 c0 10 20 c9 20 22 73 61 76 65 70 6f 73 22 |.... . "savepos"| 00000740 0d 03 ca 10 20 20 f2 71 75 69 63 6b 73 61 76 65 |.... .quicksave| 00000750 0d 03 d4 07 20 20 e1 0d 03 de 11 20 c9 20 22 66 |.... ..... . "f| 00000760 69 6e 64 63 61 72 64 22 0d 03 e8 0f 20 20 f2 66 |indcard".... .f| 00000770 69 6e 64 63 61 72 64 0d 03 f2 07 20 20 e1 0d 03 |indcard.... ...| 00000780 fc 05 cb 0d 04 06 05 e1 0d 04 10 04 0d 04 1a 1e |................| 00000790 dd 20 f2 75 70 64 61 74 65 63 61 72 64 28 69 63 |. .updatecard(ic| 000007a0 6f 6e 25 2c 74 79 70 65 24 29 0d 04 24 16 20 6e |on%,type$)..$. n| 000007b0 75 6d 62 65 72 24 3d c0 74 79 70 65 24 2c 31 29 |umber$=.type$,1)| 000007c0 0d 04 2e 21 20 e7 20 6e 75 6d 62 65 72 24 3d 22 |...! . number$="| 000007d0 31 22 20 8c 20 6e 75 6d 62 65 72 24 3d 22 31 30 |1" . number$="10| 000007e0 22 0d 04 38 14 20 74 79 70 65 24 3d c2 74 79 70 |"..8. type$=.typ| 000007f0 65 24 2c 31 29 0d 04 42 0f 20 c8 8e 20 74 79 70 |e$,1)..B. .. typ| 00000800 65 24 20 ca 0d 04 4c 1b 20 20 c9 20 22 44 22 20 |e$ ...L. . "D" | 00000810 3a 20 73 70 72 69 74 65 24 3d 22 64 69 61 22 0d |: sprite$="dia".| 00000820 04 56 1d 20 20 c9 20 22 48 22 20 3a 20 73 70 72 |.V. . "H" : spr| 00000830 69 74 65 24 3d 22 68 65 61 72 74 22 0d 04 60 1d |ite$="heart"..`.| 00000840 20 20 c9 20 22 53 22 20 3a 20 73 70 72 69 74 65 | . "S" : sprite| 00000850 24 3d 22 73 70 61 64 65 22 0d 04 6a 1c 20 20 c9 |$="spade"..j. .| 00000860 20 22 43 22 20 3a 20 73 70 72 69 74 65 24 3d 22 | "C" : sprite$="| 00000870 63 6c 75 62 22 0d 04 74 06 20 cb 0d 04 7e 12 20 |club"..t. ...~. | 00000880 21 63 68 75 6e 6b 25 3d 6d 61 69 6e 25 0d 04 88 |!chunk%=main%...| 00000890 13 20 63 68 75 6e 6b 25 21 34 3d 69 63 6f 6e 25 |. chunk%!4=icon%| 000008a0 0d 04 92 23 20 c8 99 20 22 57 69 6d 70 5f 47 65 |...# .. "Wimp_Ge| 000008b0 74 49 63 6f 6e 53 74 61 74 65 22 2c 2c 63 68 75 |tIconState",,chu| 000008c0 6e 6b 25 0d 04 9c 0f 20 63 68 75 6e 6b 25 21 38 |nk%.... chunk%!8| 000008d0 3d 30 0d 04 a6 10 20 63 68 75 6e 6b 25 21 31 32 |=0.... chunk%!12| 000008e0 3d 30 0d 04 b0 3c 20 e7 20 74 79 70 65 24 3d 22 |=0...< . type$="| 000008f0 22 20 8c 20 24 28 63 68 75 6e 6b 25 21 33 32 29 |" . $(chunk%!32)| 00000900 3d 22 22 20 8b 20 24 28 63 68 75 6e 6b 25 21 33 |="" . $(chunk%!3| 00000910 32 29 3d 22 53 22 2b 73 70 72 69 74 65 24 0d 04 |2)="S"+sprite$..| 00000920 ba 23 20 c8 99 20 22 57 69 6d 70 5f 53 65 74 49 |.# .. "Wimp_SetI| 00000930 63 6f 6e 53 74 61 74 65 22 2c 2c 63 68 75 6e 6b |conState",,chunk| 00000940 25 0d 04 c4 36 20 c8 99 20 22 57 69 6d 70 45 78 |%...6 .. "WimpEx| 00000950 74 5f 53 65 74 49 63 6f 6e 53 74 72 69 6e 67 4e |t_SetIconStringN| 00000960 22 2c 2c 2c 6d 61 69 6e 25 2c 69 63 6f 6e 25 2c |",,,main%,icon%,| 00000970 6e 75 6d 62 65 72 24 0d 04 ce 05 e1 0d 04 d8 04 |number$.........| 00000980 0d 04 e2 10 dd 20 f2 73 65 74 75 70 70 61 63 6b |..... .setuppack| 00000990 0d 04 ec 0f 20 63 61 72 64 24 28 29 3d 22 22 0d |.... card$()="".| 000009a0 04 f6 0d 20 63 61 72 64 6e 6f 3d 30 0d 05 00 11 |... cardno=0....| 000009b0 20 e3 20 73 75 69 74 3d 31 20 b8 20 34 0d 05 0a | . suit=1 . 4...| 000009c0 13 20 20 e3 20 63 61 72 64 3d 31 20 b8 20 31 33 |. . card=1 . 13| 000009d0 0d 05 14 10 20 20 20 63 61 72 64 6e 6f 2b 3d 31 |.... cardno+=1| 000009e0 0d 05 1e 10 20 20 20 c8 8e 20 63 61 72 64 20 ca |.... .. card .| 000009f0 0d 05 28 23 20 20 20 20 c9 20 31 20 20 20 20 3a |..(# . 1 :| 00000a00 20 63 61 72 64 24 28 63 61 72 64 6e 6f 29 2b 3d | card$(cardno)+=| 00000a10 22 41 22 0d 05 32 23 20 20 20 20 c9 20 31 30 20 |"A"..2# . 10 | 00000a20 20 20 3a 20 63 61 72 64 24 28 63 61 72 64 6e 6f | : card$(cardno| 00000a30 29 2b 3d 22 31 22 0d 05 3c 23 20 20 20 20 c9 20 |)+="1"..<# . | 00000a40 31 31 20 20 20 3a 20 63 61 72 64 24 28 63 61 72 |11 : card$(car| 00000a50 64 6e 6f 29 2b 3d 22 4a 22 0d 05 46 23 20 20 20 |dno)+="J"..F# | 00000a60 20 c9 20 31 32 20 20 20 3a 20 63 61 72 64 24 28 | . 12 : card$(| 00000a70 63 61 72 64 6e 6f 29 2b 3d 22 51 22 0d 05 50 23 |cardno)+="Q"..P#| 00000a80 20 20 20 20 c9 20 31 33 20 20 20 3a 20 63 61 72 | . 13 : car| 00000a90 64 24 28 63 61 72 64 6e 6f 29 2b 3d 22 4b 22 0d |d$(cardno)+="K".| 00000aa0 05 5a 20 20 20 20 20 7f 20 3a 20 63 61 72 64 24 |.Z . : card$| 00000ab0 28 63 61 72 64 6e 6f 29 2b 3d c3 63 61 72 64 0d |(cardno)+=.card.| 00000ac0 05 64 08 20 20 20 cb 0d 05 6e 10 20 20 20 c8 8e |.d. ...n. ..| 00000ad0 20 73 75 69 74 20 ca 0d 05 78 20 20 20 20 20 c9 | suit ...x .| 00000ae0 20 31 20 3a 20 63 61 72 64 24 28 63 61 72 64 6e | 1 : card$(cardn| 00000af0 6f 29 2b 3d 22 44 22 0d 05 82 20 20 20 20 20 c9 |o)+="D"... .| 00000b00 20 32 20 3a 20 63 61 72 64 24 28 63 61 72 64 6e | 2 : card$(cardn| 00000b10 6f 29 2b 3d 22 48 22 0d 05 8c 20 20 20 20 20 c9 |o)+="H"... .| 00000b20 20 33 20 3a 20 63 61 72 64 24 28 63 61 72 64 6e | 3 : card$(cardn| 00000b30 6f 29 2b 3d 22 43 22 0d 05 96 20 20 20 20 20 c9 |o)+="C"... .| 00000b40 20 34 20 3a 20 63 61 72 64 24 28 63 61 72 64 6e | 4 : card$(cardn| 00000b50 6f 29 2b 3d 22 53 22 0d 05 a0 08 20 20 20 cb 0d |o)+="S".... ..| 00000b60 05 aa 07 20 ed 2c 0d 05 b4 05 e1 0d 05 be 04 0d |... .,..........| 00000b70 05 c8 12 dd 20 f2 73 68 75 66 66 6c 65 70 61 63 |.... .shufflepac| 00000b80 6b 0d 05 d2 16 20 c8 99 20 22 48 6f 75 72 67 6c |k.... .. "Hourgl| 00000b90 61 73 73 5f 4f 6e 22 0d 05 dc 18 20 e3 20 73 68 |ass_On".... . sh| 00000ba0 75 66 66 6c 65 3d 31 20 b8 20 31 30 30 30 30 0d |uffle=1 . 10000.| 00000bb0 05 e6 22 20 20 c8 94 20 63 61 72 64 24 28 b3 28 |.." .. card$(.(| 00000bc0 35 32 29 29 2c 63 61 72 64 24 28 b3 28 35 32 29 |52)),card$(.(52)| 00000bd0 29 0d 05 f0 06 20 ed 0d 05 fa 19 20 c8 99 20 22 |).... ..... .. "| 00000be0 48 6f 75 72 67 6c 61 73 73 5f 53 6d 61 73 68 22 |Hourglass_Smash"| 00000bf0 0d 06 04 05 e1 0d 06 0e 04 0d 06 18 1e dd 20 f2 |.............. .| 00000c00 64 72 61 67 63 61 72 64 28 77 69 6e 64 6f 77 25 |dragcard(window%| 00000c10 2c 69 63 6f 6e 25 29 0d 06 22 14 20 64 72 61 67 |,icon%)..". drag| 00000c20 69 63 6f 6e 25 3d 69 63 6f 6e 25 0d 06 2c 13 20 |icon%=icon%..,. | 00000c30 63 68 75 6e 6b 25 21 30 3d 6d 61 69 6e 25 0d 06 |chunk%!0=main%..| 00000c40 36 13 20 63 68 75 6e 6b 25 21 34 3d 69 63 6f 6e |6. chunk%!4=icon| 00000c50 25 0d 06 40 23 20 c8 99 20 22 57 69 6d 70 5f 47 |%..@# .. "Wimp_G| 00000c60 65 74 49 63 6f 6e 53 74 61 74 65 22 2c 2c 63 68 |etIconState",,ch| 00000c70 75 6e 6b 25 0d 06 4a 18 20 24 28 63 68 75 6e 6b |unk%..J. $(chunk| 00000c80 25 21 33 32 29 3d 76 61 6c 69 64 24 0d 06 54 1f |%!32)=valid$..T.| 00000c90 20 73 70 72 69 74 65 24 3d c2 76 61 6c 69 64 24 | sprite$=.valid$| 00000ca0 2c a9 76 61 6c 69 64 24 2d 31 29 0d 06 5e 45 20 |,.valid$-1)..^E | 00000cb0 c8 99 20 22 57 69 6d 70 45 78 74 5f 44 72 61 67 |.. "WimpExt_Drag| 00000cc0 49 63 6f 6e 22 2c 25 31 31 31 30 30 31 31 31 31 |Icon",%111001111| 00000cd0 2c 77 73 70 72 69 74 65 73 25 2c 6d 61 69 6e 25 |,wsprites%,main%| 00000ce0 2c 69 63 6f 6e 25 2c 73 70 72 69 74 65 24 2c 30 |,icon%,sprite$,0| 00000cf0 0d 06 68 05 e1 0d 06 72 04 0d 06 7c 11 dd 20 f2 |..h....r...|.. .| 00000d00 66 69 6e 69 73 68 64 72 61 67 0d 06 86 25 20 c8 |finishdrag...% .| 00000d10 99 20 22 57 69 6d 70 5f 47 65 74 50 6f 69 6e 74 |. "Wimp_GetPoint| 00000d20 65 72 49 6e 66 6f 22 2c 2c 63 68 75 6e 6b 25 0d |erInfo",,chunk%.| 00000d30 06 90 1b 20 e7 20 63 68 75 6e 6b 25 21 31 32 3c |... . chunk%!12<| 00000d40 3e 6d 61 69 6e 25 20 8c 20 e1 0d 06 9a 25 20 e7 |>main% . ....% .| 00000d50 20 63 68 75 6e 6b 25 21 31 36 3c 31 20 84 20 63 | chunk%!16<1 . c| 00000d60 68 75 6e 6b 25 21 31 36 3e 35 36 20 8c 20 e1 0d |hunk%!16>56 . ..| 00000d70 06 a4 14 20 69 63 6f 6e 25 3d 63 68 75 6e 6b 25 |... icon%=chunk%| 00000d80 21 31 36 0d 06 ae 0f 20 c8 8e 20 61 63 65 73 25 |!16.... .. aces%| 00000d90 20 ca 0d 06 b8 09 20 20 c9 20 a3 0d 06 c2 26 20 | ..... . ....& | 00000da0 20 20 e7 20 c0 63 61 72 64 24 28 64 72 61 67 69 | . .card$(dragi| 00000db0 63 6f 6e 25 29 2c 31 29 3c 3e 22 41 22 20 8c 20 |con%),1)<>"A" . | 00000dc0 e1 0d 06 cc 1e 20 20 20 e7 20 69 63 6f 6e 25 3c |..... . icon%<| 00000dd0 35 33 20 84 20 69 63 6f 6e 25 3e 35 36 20 e1 0d |53 . icon%>56 ..| 00000de0 06 d6 2a 20 20 20 f2 75 70 64 61 74 65 63 61 72 |..* .updatecar| 00000df0 64 28 69 63 6f 6e 25 2c 63 61 72 64 24 28 64 72 |d(icon%,card$(dr| 00000e00 61 67 69 63 6f 6e 25 29 29 0d 06 e0 24 20 20 20 |agicon%))...$ | 00000e10 63 61 72 64 24 28 69 63 6f 6e 25 29 3d 63 61 72 |card$(icon%)=car| 00000e20 64 24 28 64 72 61 67 69 63 6f 6e 25 29 0d 06 ea |d$(dragicon%)...| 00000e30 20 20 20 20 f2 75 70 64 61 74 65 63 61 72 64 28 | .updatecard(| 00000e40 64 72 61 67 69 63 6f 6e 25 2c 22 22 29 0d 06 f4 |dragicon%,"")...| 00000e50 1a 20 20 20 63 61 72 64 24 28 64 72 61 67 69 63 |. card$(dragic| 00000e60 6f 6e 25 29 3d 22 22 0d 06 fe 13 20 20 20 61 63 |on%)="".... ac| 00000e70 65 63 6f 75 6e 74 25 2b 3d 31 0d 07 08 1e 20 20 |ecount%+=1.... | 00000e80 20 e7 20 61 63 65 63 6f 75 6e 74 25 3d 34 20 8c | . acecount%=4 .| 00000e90 20 61 63 65 73 25 3d b9 0d 07 12 2a 20 20 20 c8 | aces%=....* .| 00000ea0 99 20 22 57 69 6d 70 45 78 74 5f 53 68 61 64 65 |. "WimpExt_Shade| 00000eb0 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 37 |Icon",,,main%,57| 00000ec0 2c 31 0d 07 1c 2a 20 20 20 c8 99 20 22 57 69 6d |,1...* .. "Wim| 00000ed0 70 45 78 74 5f 53 68 61 64 65 49 63 6f 6e 22 2c |pExt_ShadeIcon",| 00000ee0 2c 2c 6d 61 69 6e 25 2c 35 38 2c 31 0d 07 26 08 |,,main%,58,1..&.| 00000ef0 20 20 20 e1 0d 07 30 09 20 20 c9 20 b9 0d 07 3a | ...0. . ...:| 00000f00 1d 20 20 20 e7 20 63 61 72 64 24 28 69 63 6f 6e |. . card$(icon| 00000f10 25 29 3c 3e 22 22 20 8c 20 e1 0d 07 44 28 20 20 |%)<>"" . ...D( | 00000f20 20 e7 20 ac a4 6e 65 78 74 63 61 72 64 28 69 63 | . ..nextcard(ic| 00000f30 6f 6e 25 2c 64 72 61 67 69 63 6f 6e 25 29 20 8c |on%,dragicon%) .| 00000f40 20 e1 0d 07 4e 28 20 20 20 e7 20 ac a4 73 61 6d | ...N( . ..sam| 00000f50 65 73 75 69 74 28 69 63 6f 6e 25 2c 64 72 61 67 |esuit(icon%,drag| 00000f60 69 63 6f 6e 25 29 20 8c 20 e1 0d 07 58 08 20 20 |icon%) . ...X. | 00000f70 20 cb 0d 07 62 0f 20 20 20 63 68 65 61 74 25 3d | ...b. cheat%=| 00000f80 a3 0d 07 6c 19 20 20 20 75 6e 64 6f 28 75 6e 64 |...l. undo(und| 00000f90 6f 2c 31 29 3d 69 63 6f 6e 25 0d 07 76 1d 20 20 |o,1)=icon%..v. | 00000fa0 20 75 6e 64 6f 28 75 6e 64 6f 2c 32 29 3d 64 72 | undo(undo,2)=dr| 00000fb0 61 67 69 63 6f 6e 25 0d 07 80 0e 20 20 20 75 6e |agicon%.... un| 00000fc0 64 6f 2b 3d 31 0d 07 8a 2a 20 20 20 c8 99 20 22 |do+=1...* .. "| 00000fd0 57 69 6d 70 45 78 74 5f 53 68 61 64 65 49 63 6f |WimpExt_ShadeIco| 00000fe0 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 37 2c 30 0d |n",,,main%,57,0.| 00000ff0 07 94 2a 20 20 20 f2 75 70 64 61 74 65 63 61 72 |..* .updatecar| 00001000 64 28 69 63 6f 6e 25 2c 63 61 72 64 24 28 64 72 |d(icon%,card$(dr| 00001010 61 67 69 63 6f 6e 25 29 29 0d 07 9e 24 20 20 20 |agicon%))...$ | 00001020 63 61 72 64 24 28 69 63 6f 6e 25 29 3d 63 61 72 |card$(icon%)=car| 00001030 64 24 28 64 72 61 67 69 63 6f 6e 25 29 0d 07 a8 |d$(dragicon%)...| 00001040 20 20 20 20 f2 75 70 64 61 74 65 63 61 72 64 28 | .updatecard(| 00001050 64 72 61 67 69 63 6f 6e 25 2c 22 22 29 0d 07 b2 |dragicon%,"")...| 00001060 1a 20 20 20 63 61 72 64 24 28 64 72 61 67 69 63 |. card$(dragic| 00001070 6f 6e 25 29 3d 22 22 0d 07 bc 33 20 20 20 c8 99 |on%)=""...3 ..| 00001080 20 22 57 69 6d 70 45 78 74 5f 53 65 74 4e 75 6d | "WimpExt_SetNum| 00001090 62 65 72 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 |berIcon",,,main%| 000010a0 2c 36 30 2c 75 6e 64 6f 2d 31 0d 07 c6 06 20 cb |,60,undo-1.... .| 000010b0 0d 07 d0 10 20 f2 63 68 65 63 6b 63 61 72 64 73 |.... .checkcards| 000010c0 0d 07 da 05 e1 0d 07 e4 04 0d 07 ee 10 dd 20 f2 |.............. .| 000010d0 73 74 61 72 74 67 61 6d 65 0d 07 f8 0f 20 f2 73 |startgame.... .s| 000010e0 65 74 75 70 70 61 63 6b 0d 08 02 11 20 f2 73 68 |etuppack.... .sh| 000010f0 75 66 66 6c 65 70 61 63 6b 0d 08 0c 0f 20 e3 20 |ufflepack.... . | 00001100 78 3d 31 20 b8 20 35 32 0d 08 16 1d 20 20 f2 75 |x=1 . 52.... .u| 00001110 70 64 61 74 65 63 61 72 64 28 78 2c 63 61 72 64 |pdatecard(x,card| 00001120 24 28 78 29 29 0d 08 20 06 20 ed 0d 08 2a 0c 20 |$(x)).. . ...*. | 00001130 61 63 65 73 25 3d a3 0d 08 34 10 20 61 63 65 63 |aces%=...4. acec| 00001140 6f 75 6e 74 25 3d 30 0d 08 3e 10 20 e3 20 78 3d |ount%=0..>. . x=| 00001150 35 33 20 b8 20 35 36 0d 08 48 14 20 20 63 68 75 |53 . 56..H. chu| 00001160 6e 6b 25 21 30 3d 6d 61 69 6e 25 0d 08 52 10 20 |nk%!0=main%..R. | 00001170 20 63 68 75 6e 6b 25 21 34 3d 78 0d 08 5c 24 20 | chunk%!4=x..\$ | 00001180 20 c8 99 20 22 57 69 6d 70 5f 47 65 74 49 63 6f | .. "Wimp_GetIco| 00001190 6e 53 74 61 74 65 22 2c 2c 63 68 75 6e 6b 25 0d |nState",,chunk%.| 000011a0 08 66 15 20 20 24 28 63 68 75 6e 6b 25 21 33 32 |.f. $(chunk%!32| 000011b0 29 3d 22 22 0d 08 70 2e 20 20 c8 99 20 22 57 69 |)=""..p. .. "Wi| 000011c0 6d 70 45 78 74 5f 53 65 74 49 63 6f 6e 53 74 72 |mpExt_SetIconStr| 000011d0 69 6e 67 4e 22 2c 2c 2c 6d 61 69 6e 25 2c 78 2c |ingN",,,main%,x,| 000011e0 22 22 0d 08 7a 06 20 ed 0d 08 84 0b 20 75 6e 64 |""..z. ..... und| 000011f0 6f 3d 31 0d 08 8e 0d 20 75 6e 64 6f 28 29 3d 30 |o=1.... undo()=0| 00001200 0d 08 98 28 20 c8 99 20 22 57 69 6d 70 45 78 74 |...( .. "WimpExt| 00001210 5f 53 68 61 64 65 49 63 6f 6e 22 2c 2c 2c 6d 61 |_ShadeIcon",,,ma| 00001220 69 6e 25 2c 35 37 2c 31 0d 08 a2 28 20 c8 99 20 |in%,57,1...( .. | 00001230 22 57 69 6d 70 45 78 74 5f 53 68 61 64 65 49 63 |"WimpExt_ShadeIc| 00001240 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 38 2c 30 |on",,,main%,58,0| 00001250 0d 08 ac 2c 20 c8 99 20 22 57 69 6d 70 45 78 74 |..., .. "WimpExt| 00001260 5f 53 65 74 4e 75 6d 62 65 72 49 63 6f 6e 22 2c |_SetNumberIcon",| 00001270 2c 2c 6d 61 69 6e 25 2c 36 30 2c 30 0d 08 b6 0d |,,main%,60,0....| 00001280 20 63 68 65 61 74 25 3d a3 0d 08 c0 09 20 74 63 | cheat%=..... tc| 00001290 3d 30 0d 08 ca 05 e1 0d 08 d4 04 0d 08 de 1a dd |=0..............| 000012a0 20 a4 73 61 6d 65 73 75 69 74 28 74 6f 25 2c 66 | .samesuit(to%,f| 000012b0 72 6f 6d 25 29 0d 08 e8 22 20 64 72 61 67 67 65 |rom%)..." dragge| 000012c0 64 73 75 69 74 24 3d c2 63 61 72 64 24 28 66 72 |dsuit$=.card$(fr| 000012d0 6f 6d 25 29 2c 31 29 0d 08 f2 0d 20 c8 8e 20 74 |om%),1).... .. t| 000012e0 6f 25 20 ca 0d 08 fc 3b 20 20 c9 20 31 2c 31 34 |o% ....; . 1,14| 000012f0 2c 32 37 2c 34 30 20 3a 20 6e 65 78 74 74 6f 73 |,27,40 : nexttos| 00001300 75 69 74 24 3d c2 63 61 72 64 24 28 28 28 74 6f |uit$=.card$(((to| 00001310 25 2d 31 29 2f 31 33 29 2b 35 33 29 2c 31 29 0d |%-1)/13)+53),1).| 00001320 09 06 2c 20 20 7f 20 20 20 20 20 20 20 3a 20 6e |.., . : n| 00001330 65 78 74 74 6f 73 75 69 74 24 3d c2 63 61 72 64 |exttosuit$=.card| 00001340 24 28 74 6f 25 2d 31 29 2c 31 29 0d 09 10 06 20 |$(to%-1),1).... | 00001350 cb 0d 09 1a 2a 20 e7 20 64 72 61 67 67 65 64 73 |....* . draggeds| 00001360 75 69 74 24 3c 3e 6e 65 78 74 74 6f 73 75 69 74 |uit$<>nexttosuit| 00001370 24 20 8c 20 3d a3 20 8b 20 3d b9 0d 09 24 06 3d |$ . =. . =...$.=| 00001380 a3 0d 09 2e 04 0d 09 38 1a dd 20 a4 6e 65 78 74 |.......8.. .next| 00001390 63 61 72 64 28 74 6f 25 2c 66 72 6f 6d 25 29 0d |card(to%,from%).| 000013a0 09 42 20 20 64 72 61 67 67 65 64 6e 6f 24 3d c0 |.B draggedno$=.| 000013b0 63 61 72 64 24 28 66 72 6f 6d 25 29 2c 31 29 0d |card$(from%),1).| 000013c0 09 4c 14 20 c8 8e 20 64 72 61 67 67 65 64 6e 6f |.L. .. draggedno| 000013d0 24 20 ca 0d 09 56 3c 20 20 c9 20 22 32 22 20 3a |$ ...V< . "2" :| 000013e0 20 e7 20 28 74 6f 25 3d 31 20 84 20 74 6f 25 3d | . (to%=1 . to%=| 000013f0 31 34 20 84 20 74 6f 25 3d 32 37 20 84 20 74 6f |14 . to%=27 . to| 00001400 25 3d 34 30 29 20 8c 20 3d b9 20 8b 20 3d a3 0d |%=40) . =. . =..| 00001410 09 60 23 20 20 c9 20 22 33 22 2c 22 34 22 2c 22 |.`# . "3","4","| 00001420 35 22 2c 22 36 22 2c 22 37 22 2c 22 38 22 2c 22 |5","6","7","8","| 00001430 39 22 0d 09 6a 1d 20 20 20 6e 65 78 74 24 3d c3 |9"..j. next$=.| 00001440 28 bb 64 72 61 67 67 65 64 6e 6f 24 2d 31 29 0d |(.draggedno$-1).| 00001450 09 74 17 20 20 c9 20 22 31 22 20 3a 20 6e 65 78 |.t. . "1" : nex| 00001460 74 24 3d 22 39 22 0d 09 7e 17 20 20 c9 20 22 4a |t$="9"..~. . "J| 00001470 22 20 3a 20 6e 65 78 74 24 3d 22 31 22 0d 09 88 |" : next$="1"...| 00001480 17 20 20 c9 20 22 51 22 20 3a 20 6e 65 78 74 24 |. . "Q" : next$| 00001490 3d 22 4a 22 0d 09 92 17 20 20 c9 20 22 4b 22 20 |="J".... . "K" | 000014a0 3a 20 6e 65 78 74 24 3d 22 51 22 0d 09 9c 06 20 |: next$="Q".... | 000014b0 cb 0d 09 a6 1f 20 6e 65 78 74 63 61 72 64 24 3d |..... nextcard$=| 000014c0 c0 63 61 72 64 24 28 74 6f 25 2d 31 29 2c 31 29 |.card$(to%-1),1)| 000014d0 0d 09 b0 21 20 e7 20 6e 65 78 74 63 61 72 64 24 |...! . nextcard$| 000014e0 3c 3e 6e 65 78 74 24 20 8c 20 3d a3 20 8b 20 3d |<>next$ . =. . =| 000014f0 b9 0d 09 ba 06 3d a3 0d 09 c4 04 0d 09 ce 11 dd |.....=..........| 00001500 20 f2 63 68 65 63 6b 63 61 72 64 73 0d 09 d8 46 | .checkcards...F| 00001510 20 e7 20 63 61 72 64 24 28 31 33 29 3c 3e 22 22 | . card$(13)<>""| 00001520 20 84 20 63 61 72 64 24 28 32 36 29 3c 3e 22 22 | . card$(26)<>""| 00001530 20 84 20 63 61 72 64 24 28 33 39 29 3c 3e 22 22 | . card$(39)<>""| 00001540 20 84 20 63 61 72 64 24 28 35 32 29 3c 3e 22 22 | . card$(52)<>""| 00001550 20 e1 0d 09 e2 11 20 e3 20 73 75 69 74 3d 31 20 | ..... . suit=1 | 00001560 b8 20 34 0d 09 ec 1c 20 20 73 75 69 74 24 3d c2 |. 4.... suit$=.| 00001570 63 61 72 64 24 28 73 75 69 74 2b 35 32 29 29 0d |card$(suit+52)).| 00001580 09 f6 13 20 20 e3 20 63 61 72 64 3d 31 20 b8 20 |... . card=1 . | 00001590 31 32 0d 0a 00 27 20 20 20 63 68 65 63 6b 24 3d |12...' check$=| 000015a0 63 61 72 64 24 28 28 28 73 75 69 74 2d 31 29 2a |card$(((suit-1)*| 000015b0 31 33 29 2b 63 61 72 64 29 0d 0a 0a 1c 20 20 20 |13)+card).... | 000015c0 e7 20 c2 63 68 65 63 6b 24 2c 31 29 3c 3e 73 75 |. .check$,1)<>su| 000015d0 69 74 24 20 e1 0d 0a 14 10 20 20 20 c8 8e 20 63 |it$ ..... .. c| 000015e0 61 72 64 20 ca 0d 0a 1e 2d 20 20 20 20 c9 20 31 |ard ....- . 1| 000015f0 2c 32 2c 33 2c 34 2c 35 2c 36 2c 37 2c 38 20 3a |,2,3,4,5,6,7,8 :| 00001600 20 6e 75 6d 62 65 72 24 3d c3 28 63 61 72 64 2b | number$=.(card+| 00001610 31 29 0d 0a 28 1a 20 20 20 20 c9 20 39 20 20 3a |1)..(. . 9 :| 00001620 20 6e 75 6d 62 65 72 24 3d 22 31 22 0d 0a 32 1a | number$="1"..2.| 00001630 20 20 20 20 c9 20 31 30 20 3a 20 6e 75 6d 62 65 | . 10 : numbe| 00001640 72 24 3d 22 4a 22 0d 0a 3c 1a 20 20 20 20 c9 20 |r$="J"..<. . | 00001650 31 31 20 3a 20 6e 75 6d 62 65 72 24 3d 22 51 22 |11 : number$="Q"| 00001660 0d 0a 46 1a 20 20 20 20 c9 20 31 32 20 3a 20 6e |..F. . 12 : n| 00001670 75 6d 62 65 72 24 3d 22 4b 22 0d 0a 50 08 20 20 |umber$="K"..P. | 00001680 20 cb 0d 0a 5a 1e 20 20 20 e7 20 c0 63 68 65 63 | ...Z. . .chec| 00001690 6b 24 2c 31 29 3c 3e 6e 75 6d 62 65 72 24 20 e1 |k$,1)<>number$ .| 000016a0 0d 0a 64 07 20 ed 2c 0d 0a 6e 7d 20 c8 99 20 22 |..d. .,..n} .. "| 000016b0 57 69 6d 70 5f 52 65 70 6f 72 74 45 72 72 6f 72 |Wimp_ReportError| 000016c0 22 2c 22 20 20 20 20 43 6f 6e 67 72 61 74 75 6c |"," Congratul| 000016d0 61 74 69 6f 6e 73 2e 20 59 6f 75 20 68 61 76 65 |ations. You have| 000016e0 20 63 6f 6d 70 6c 65 74 65 64 20 74 68 65 20 67 | completed the g| 000016f0 61 6d 65 20 69 6e 20 22 2b c3 75 6e 64 6f 2b 22 |ame in "+.undo+"| 00001700 20 6d 6f 76 65 73 2e 22 2c 26 31 34 2c 22 4d 65 | moves.",&14,"Me| 00001710 73 73 61 67 65 20 46 72 6f 6d 20 50 61 74 69 65 |ssage From Patie| 00001720 6e 63 65 22 0d 0a 78 12 20 21 63 68 75 6e 6b 25 |nce"..x. !chunk%| 00001730 3d 6d 61 69 6e 25 0d 0a 82 25 20 c8 99 20 22 57 |=main%...% .. "W| 00001740 69 6d 70 45 78 74 5f 43 6c 6f 73 65 4c 69 6e 6b |impExt_CloseLink| 00001750 65 64 22 2c 2c 63 68 75 6e 6b 25 0d 0a 8c 0f 20 |ed",,chunk%.... | 00001760 f2 73 74 61 72 74 67 61 6d 65 0d 0a 96 05 e1 0d |.startgame......| 00001770 0a a0 04 0d 0a aa 0b dd 20 f2 75 6e 64 6f 0d 0a |........ .undo..| 00001780 b4 0f 20 e7 20 75 6e 64 6f 3d 31 20 e1 0d 0a be |.. . undo=1 ....| 00001790 0c 20 75 6e 64 6f 2d 3d 31 0d 0a c8 33 20 e7 20 |. undo-=1...3 . | 000017a0 75 6e 64 6f 3d 31 20 8c 20 c8 99 20 22 57 69 6d |undo=1 . .. "Wim| 000017b0 70 45 78 74 5f 53 68 61 64 65 49 63 6f 6e 22 2c |pExt_ShadeIcon",| 000017c0 2c 2c 6d 61 69 6e 25 2c 35 37 2c 31 0d 0a d2 31 |,,main%,57,1...1| 000017d0 20 c8 99 20 22 57 69 6d 70 45 78 74 5f 53 65 74 | .. "WimpExt_Set| 000017e0 4e 75 6d 62 65 72 49 63 6f 6e 22 2c 2c 2c 6d 61 |NumberIcon",,,ma| 000017f0 69 6e 25 2c 36 30 2c 75 6e 64 6f 2d 31 0d 0a dc |in%,60,undo-1...| 00001800 32 20 f2 75 70 64 61 74 65 63 61 72 64 28 75 6e |2 .updatecard(un| 00001810 64 6f 28 75 6e 64 6f 2c 32 29 2c 63 61 72 64 24 |do(undo,2),card$| 00001820 28 75 6e 64 6f 28 75 6e 64 6f 2c 31 29 29 29 0d |(undo(undo,1))).| 00001830 0a e6 21 20 f2 75 70 64 61 74 65 63 61 72 64 28 |..! .updatecard(| 00001840 75 6e 64 6f 28 75 6e 64 6f 2c 31 29 2c 22 22 29 |undo(undo,1),"")| 00001850 0d 0a f0 2c 20 63 61 72 64 24 28 75 6e 64 6f 28 |..., card$(undo(| 00001860 75 6e 64 6f 2c 32 29 29 3d 63 61 72 64 24 28 75 |undo,2))=card$(u| 00001870 6e 64 6f 28 75 6e 64 6f 2c 31 29 29 0d 0a fa 1b |ndo(undo,1))....| 00001880 20 63 61 72 64 24 28 75 6e 64 6f 28 75 6e 64 6f | card$(undo(undo| 00001890 2c 31 29 29 3d 22 22 0d 0b 04 05 e1 0d 0b 0e 04 |,1))="".........| 000018a0 0d 0b 18 0d dd 20 f2 64 6f 61 63 65 73 0d 0b 22 |..... .doaces.."| 000018b0 0e 20 63 6f 75 6e 74 65 72 3d 31 0d 0b 2c 0f 20 |. counter=1..,. | 000018c0 e3 20 78 3d 31 20 b8 20 35 32 0d 0b 36 17 20 20 |. x=1 . 52..6. | 000018d0 c8 8e 20 c0 63 61 72 64 24 28 78 29 2c 31 29 20 |.. .card$(x),1) | 000018e0 ca 0d 0b 40 0c 20 20 20 c9 20 22 41 22 0d 0b 4a |...@. . "A"..J| 000018f0 28 20 20 20 20 f2 75 70 64 61 74 65 63 61 72 64 |( .updatecard| 00001900 28 63 6f 75 6e 74 65 72 2b 35 32 2c 63 61 72 64 |(counter+52,card| 00001910 24 28 78 29 29 0d 0b 54 19 20 20 20 20 f2 75 70 |$(x))..T. .up| 00001920 64 61 74 65 63 61 72 64 28 78 2c 22 22 29 0d 0b |datecard(x,"")..| 00001930 5e 22 20 20 20 20 63 61 72 64 24 28 63 6f 75 6e |^" card$(coun| 00001940 74 65 72 2b 35 32 29 3d 63 61 72 64 24 28 78 29 |ter+52)=card$(x)| 00001950 0d 0b 68 13 20 20 20 20 63 61 72 64 24 28 78 29 |..h. card$(x)| 00001960 3d 22 22 0d 0b 72 12 20 20 20 20 63 6f 75 6e 74 |=""..r. count| 00001970 65 72 2b 3d 31 0d 0b 7c 07 20 20 cb 0d 0b 86 06 |er+=1..|. .....| 00001980 20 ed 0d 0b 90 0c 20 61 63 65 73 25 3d b9 0d 0b | ..... aces%=...| 00001990 9a 28 20 c8 99 20 22 57 69 6d 70 45 78 74 5f 53 |.( .. "WimpExt_S| 000019a0 68 61 64 65 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e |hadeIcon",,,main| 000019b0 25 2c 35 37 2c 31 0d 0b a4 28 20 c8 99 20 22 57 |%,57,1...( .. "W| 000019c0 69 6d 70 45 78 74 5f 53 68 61 64 65 49 63 6f 6e |impExt_ShadeIcon| 000019d0 22 2c 2c 2c 6d 61 69 6e 25 2c 35 38 2c 31 0d 0b |",,,main%,58,1..| 000019e0 ae 05 e1 0d 0b b8 04 0d 0b c2 0a dd 20 f2 74 72 |............ .tr| 000019f0 79 0d 0b cc 11 20 65 6d 70 74 79 3d a4 65 6d 70 |y.... empty=.emp| 00001a00 74 79 0d 0b d6 13 20 e7 20 65 6d 70 74 79 3d 2d |ty.... . empty=-| 00001a10 31 20 8c 20 e1 0d 0b e0 0a 20 74 63 2b 3d 31 0d |1 . ..... tc+=1.| 00001a20 0b ea 1c 20 c8 8e 20 c0 63 61 72 64 24 28 65 6d |... .. .card$(em| 00001a30 70 74 79 2d 31 29 2c 31 29 20 ca 0d 0b f4 23 20 |pty-1),1) ....# | 00001a40 20 c9 20 22 32 22 2c 22 33 22 2c 22 34 22 2c 22 | . "2","3","4","| 00001a50 35 22 2c 22 36 22 2c 22 37 22 2c 22 38 22 0d 0b |5","6","7","8"..| 00001a60 fe 3e 20 20 20 6e 65 78 74 63 61 72 64 24 3d c3 |.> nextcard$=.| 00001a70 28 bb 28 c0 63 61 72 64 24 28 65 6d 70 74 79 2d |(.(.card$(empty-| 00001a80 31 29 2c 31 29 29 2b 31 29 2b c2 63 61 72 64 24 |1),1))+1)+.card$| 00001a90 28 65 6d 70 74 79 2d 31 29 2c 31 29 0d 0c 08 0b |(empty-1),1)....| 00001aa0 20 20 c9 20 22 39 22 0d 0c 12 27 20 20 20 6e 65 | . "9"...' ne| 00001ab0 78 74 63 61 72 64 24 3d 22 31 22 2b c2 63 61 72 |xtcard$="1"+.car| 00001ac0 64 24 28 65 6d 70 74 79 2d 31 29 2c 31 29 0d 0c |d$(empty-1),1)..| 00001ad0 1c 0b 20 20 c9 20 22 31 22 0d 0c 26 27 20 20 20 |.. . "1"..&' | 00001ae0 6e 65 78 74 63 61 72 64 24 3d 22 4a 22 2b c2 63 |nextcard$="J"+.c| 00001af0 61 72 64 24 28 65 6d 70 74 79 2d 31 29 2c 31 29 |ard$(empty-1),1)| 00001b00 0d 0c 30 0b 20 20 c9 20 22 4a 22 0d 0c 3a 27 20 |..0. . "J"..:' | 00001b10 20 20 6e 65 78 74 63 61 72 64 24 3d 22 51 22 2b | nextcard$="Q"+| 00001b20 c2 63 61 72 64 24 28 65 6d 70 74 79 2d 31 29 2c |.card$(empty-1),| 00001b30 31 29 0d 0c 44 0b 20 20 c9 20 22 51 22 0d 0c 4e |1)..D. . "Q"..N| 00001b40 27 20 20 20 6e 65 78 74 63 61 72 64 24 3d 22 4b |' nextcard$="K| 00001b50 22 2b c2 63 61 72 64 24 28 65 6d 70 74 79 2d 31 |"+.card$(empty-1| 00001b60 29 2c 31 29 0d 0c 58 06 20 cb 0d 0c 62 5a 20 e7 |),1)..X. ...bZ .| 00001b70 20 65 6d 70 74 79 3d 31 20 84 20 65 6d 70 74 79 | empty=1 . empty| 00001b80 3d 31 34 20 84 20 65 6d 70 74 79 3d 32 37 20 84 |=14 . empty=27 .| 00001b90 20 65 6d 70 74 79 3d 34 30 20 6e 65 78 74 63 61 | empty=40 nextca| 00001ba0 72 64 24 3d 22 32 22 2b c2 63 61 72 64 24 28 28 |rd$="2"+.card$((| 00001bb0 28 65 6d 70 74 79 2d 31 29 2f 31 33 29 2b 35 33 |(empty-1)/13)+53| 00001bc0 29 2c 31 29 0d 0c 6c 10 20 6e 65 78 74 63 61 72 |),1)..l. nextcar| 00001bd0 64 3d 2d 31 0d 0c 76 0f 20 e3 20 78 3d 31 20 b8 |d=-1..v. . x=1 .| 00001be0 20 35 32 0d 0c 80 27 20 20 e7 20 63 61 72 64 24 | 52...' . card$| 00001bf0 28 78 29 3d 6e 65 78 74 63 61 72 64 24 20 8c 20 |(x)=nextcard$ . | 00001c00 6e 65 78 74 63 61 72 64 3d 78 0d 0c 8a 06 20 ed |nextcard=x.... .| 00001c10 0d 0c 94 14 20 e7 20 6e 65 78 74 63 61 72 64 3d |.... . nextcard=| 00001c20 2d 31 20 e1 0d 0c 9e 19 20 20 20 75 6e 64 6f 28 |-1 ..... undo(| 00001c30 75 6e 64 6f 2c 31 29 3d 65 6d 70 74 79 0d 0c a8 |undo,1)=empty...| 00001c40 1c 20 20 20 75 6e 64 6f 28 75 6e 64 6f 2c 32 29 |. undo(undo,2)| 00001c50 3d 6e 65 78 74 63 61 72 64 0d 0c b2 0e 20 20 20 |=nextcard.... | 00001c60 75 6e 64 6f 2b 3d 31 0d 0c bc 2a 20 20 20 c8 99 |undo+=1...* ..| 00001c70 20 22 57 69 6d 70 45 78 74 5f 53 68 61 64 65 49 | "WimpExt_ShadeI| 00001c80 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 37 2c |con",,,main%,57,| 00001c90 30 0d 0c c6 27 20 f2 75 70 64 61 74 65 63 61 72 |0...' .updatecar| 00001ca0 64 28 65 6d 70 74 79 2c 63 61 72 64 24 28 6e 65 |d(empty,card$(ne| 00001cb0 78 74 63 61 72 64 29 29 0d 0c d0 1d 20 f2 75 70 |xtcard)).... .up| 00001cc0 64 61 74 65 63 61 72 64 28 6e 65 78 74 63 61 72 |datecard(nextcar| 00001cd0 64 2c 22 22 29 0d 0c da 21 20 63 61 72 64 24 28 |d,"")...! card$(| 00001ce0 65 6d 70 74 79 29 3d 63 61 72 64 24 28 6e 65 78 |empty)=card$(nex| 00001cf0 74 63 61 72 64 29 0d 0c e4 17 20 63 61 72 64 24 |tcard).... card$| 00001d00 28 6e 65 78 74 63 61 72 64 29 3d 22 22 0d 0c ee |(nextcard)=""...| 00001d10 33 20 20 20 c8 99 20 22 57 69 6d 70 45 78 74 5f |3 .. "WimpExt_| 00001d20 53 65 74 4e 75 6d 62 65 72 49 63 6f 6e 22 2c 2c |SetNumberIcon",,| 00001d30 2c 6d 61 69 6e 25 2c 36 30 2c 75 6e 64 6f 2d 31 |,main%,60,undo-1| 00001d40 0d 0c f8 13 20 e7 20 74 63 3c 31 30 30 30 20 f2 |.... . tc<1000 .| 00001d50 74 72 79 0d 0d 02 05 e1 0d 0d 0c 04 0d 0d 16 0c |try.............| 00001d60 dd 20 a4 65 6d 70 74 79 0d 0d 20 0f 20 e3 20 78 |. .empty.. . . x| 00001d70 3d 31 20 b8 20 35 32 0d 0d 2a 13 20 20 c8 8e 20 |=1 . 52..*. .. | 00001d80 63 61 72 64 24 28 78 29 20 ca 0d 0d 34 0b 20 20 |card$(x) ...4. | 00001d90 20 c9 20 22 22 0d 0d 3e 27 20 20 20 20 e7 20 78 | . ""..>' . x| 00001da0 3d 31 20 84 20 78 3d 31 34 20 84 20 78 3d 32 37 |=1 . x=14 . x=27| 00001db0 20 84 20 78 3d 34 30 20 8c 20 3d 78 0d 0d 48 1f | . x=40 . =x..H.| 00001dc0 20 20 20 20 e7 20 c0 63 61 72 64 24 28 78 2d 31 | . .card$(x-1| 00001dd0 29 2c 31 29 3d 22 22 20 8c 20 ed 0d 0d 52 22 20 |),1)="" . ...R" | 00001de0 20 20 20 e7 20 c0 63 61 72 64 24 28 78 2d 31 29 | . .card$(x-1)| 00001df0 2c 31 29 3c 3e 22 4b 22 20 8c 20 3d 78 0d 0d 5c |,1)<>"K" . =x..\| 00001e00 07 20 20 cb 0d 0d 66 06 20 ed 0d 0d 70 07 3d 2d |. ...f. ...p.=-| 00001e10 31 0d 0d 7a 04 0d 0d 84 0e dd 20 f2 74 65 78 74 |1..z...... .text| 00001e20 75 72 65 0d 0d 8e 12 20 c8 8e 20 74 65 78 74 75 |ure.... .. textu| 00001e30 72 65 25 20 ca 0d 0d 98 09 20 20 c9 20 b9 0d 0d |re% ..... . ...| 00001e40 a2 11 20 20 20 74 65 78 74 75 72 65 25 3d a3 0d |.. texture%=..| 00001e50 0d ac 37 20 20 20 c8 99 20 22 57 69 6d 70 5f 46 |..7 .. "Wimp_F| 00001e60 6f 72 63 65 52 65 64 72 61 77 22 2c 2d 31 2c 30 |orceRedraw",-1,0| 00001e70 2c 30 2c 26 37 46 46 46 46 46 46 46 2c 26 37 46 |,0,&7FFFFFFF,&7F| 00001e80 46 46 46 46 46 46 0d 0d b6 09 20 20 c9 20 a3 0d |FFFFFF.... . ..| 00001e90 0d c0 11 20 20 20 74 65 78 74 75 72 65 25 3d b9 |... texture%=.| 00001ea0 0d 0d ca 37 20 20 20 c8 99 20 22 57 69 6d 70 5f |...7 .. "Wimp_| 00001eb0 46 6f 72 63 65 52 65 64 72 61 77 22 2c 2d 31 2c |ForceRedraw",-1,| 00001ec0 30 2c 30 2c 26 37 46 46 46 46 46 46 46 2c 26 37 |0,0,&7FFFFFFF,&7| 00001ed0 46 46 46 46 46 46 46 0d 0d d4 06 20 cb 0d 0d de |FFFFFFF.... ....| 00001ee0 05 e1 0d 0d e8 04 0d 0d f2 0d dd 20 f2 73 61 76 |........... .sav| 00001ef0 65 69 74 0d 0d fc 32 20 c8 99 20 22 57 69 6d 70 |eit...2 .. "Wimp| 00001f00 45 78 74 5f 47 65 74 49 63 6f 6e 22 2c 2c 2c 6f |Ext_GetIcon",,,o| 00001f10 70 74 69 6f 6e 73 25 2c 34 20 b8 20 73 65 6c 65 |ptions%,4 . sele| 00001f20 63 74 65 64 25 0d 0e 06 16 20 66 69 6c 65 25 3d |cted%.... file%=| 00001f30 ae 28 24 73 62 74 65 78 74 25 29 0d 0e 10 10 20 |.($sbtext%).... | 00001f40 20 e3 20 78 3d 31 20 b8 20 35 36 0d 0e 1a 17 20 | . x=1 . 56.... | 00001f50 20 20 f1 23 66 69 6c 65 25 2c 63 61 72 64 24 28 | .#file%,card$(| 00001f60 78 29 0d 0e 24 07 20 20 ed 0d 0e 2e 14 20 20 c8 |x)..$. ..... .| 00001f70 8e 20 73 65 6c 65 63 74 65 64 25 20 ca 0d 0e 38 |. selected% ...8| 00001f80 0a 20 20 20 c9 20 31 0d 0e 42 11 20 20 20 20 d5 |. . 1..B. .| 00001f90 23 66 69 6c 65 25 2c 31 0d 0e 4c 14 20 20 20 20 |#file%,1..L. | 00001fa0 d5 23 66 69 6c 65 25 2c 75 6e 64 6f 0d 0e 56 16 |.#file%,undo..V.| 00001fb0 20 20 20 20 e3 20 78 3d 31 20 b8 20 75 6e 64 6f | . x=1 . undo| 00001fc0 2d 31 0d 0e 60 1a 20 20 20 20 20 d5 23 66 69 6c |-1..`. .#fil| 00001fd0 65 25 2c 75 6e 64 6f 28 78 2c 31 29 0d 0e 6a 1a |e%,undo(x,1)..j.| 00001fe0 20 20 20 20 20 d5 23 66 69 6c 65 25 2c 75 6e 64 | .#file%,und| 00001ff0 6f 28 78 2c 32 29 0d 0e 74 09 20 20 20 20 ed 0d |o(x,2)..t. ..| 00002000 0e 7e 0a 20 20 20 c9 20 30 0d 0e 88 11 20 20 20 |.~. . 0.... | 00002010 20 d5 23 66 69 6c 65 25 2c 30 0d 0e 92 07 20 20 | .#file%,0.... | 00002020 cb 0d 0e 9c 0c 20 d9 23 66 69 6c 65 25 0d 0e a6 |..... .#file%...| 00002030 22 20 c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c 31 |" .. "OS_File",1| 00002040 38 2c 24 73 62 74 65 78 74 25 2c 26 33 32 35 0d |8,$sbtext%,&325.| 00002050 0e b0 11 20 73 74 61 72 74 73 61 76 65 25 3d a3 |... startsave%=.| 00002060 0d 0e ba 05 e1 0d 0e c4 04 0d 0e ce 0f dd 20 f2 |.............. .| 00002070 64 61 74 61 6c 6f 61 64 0d 0e d8 17 20 e7 20 63 |dataload.... . c| 00002080 68 75 6e 6b 25 21 34 30 3c 3e 38 30 35 20 e1 0d |hunk%!40<>805 ..| 00002090 0e e2 0b 20 70 74 72 3d 34 34 0d 0e ec 0d 20 6e |... ptr=44.... n| 000020a0 61 6d 65 24 3d 22 22 0d 0e f6 15 20 c8 95 20 63 |ame$="".... .. c| 000020b0 68 75 6e 6b 25 3f 70 74 72 3c 3e 30 0d 0f 00 1a |hunk%?ptr<>0....| 000020c0 20 20 6e 61 6d 65 24 2b 3d bd 28 63 68 75 6e 6b | name$+=.(chunk| 000020d0 25 3f 70 74 72 29 0d 0f 0a 0c 20 20 70 74 72 2b |%?ptr).... ptr+| 000020e0 3d 31 0d 0f 14 06 20 ce 0d 0f 1e 0f 20 63 61 72 |=1.... ..... car| 000020f0 64 24 28 29 3d 22 22 0d 0f 28 0d 20 63 68 65 61 |d$()=""..(. chea| 00002100 74 25 3d a3 0d 0f 32 0c 20 61 63 65 73 25 3d b9 |t%=...2. aces%=.| 00002110 0d 0f 3c 10 20 61 63 65 63 6f 75 6e 74 25 3d 34 |..<. acecount%=4| 00002120 0d 0f 46 09 20 74 63 3d 30 0d 0f 50 13 20 66 69 |..F. tc=0..P. fi| 00002130 6c 65 25 3d 8e 28 6e 61 6d 65 24 29 0d 0f 5a 10 |le%=.(name$)..Z.| 00002140 20 20 e3 20 78 3d 31 20 b8 20 35 36 0d 0f 64 17 | . x=1 . 56..d.| 00002150 20 20 20 e8 23 66 69 6c 65 25 2c 63 61 72 64 24 | .#file%,card$| 00002160 28 78 29 0d 0f 6e 1e 20 20 20 f2 75 70 64 61 74 |(x)..n. .updat| 00002170 65 63 61 72 64 28 78 2c 63 61 72 64 24 28 78 29 |ecard(x,card$(x)| 00002180 29 0d 0f 78 07 20 20 ed 0d 0f 82 13 20 20 71 75 |)..x. ..... qu| 00002190 6e 64 6f 3d 9a 23 66 69 6c 65 25 0d 0f 8c 0e 20 |ndo=.#file%.... | 000021a0 20 75 6e 64 6f 28 29 3d 30 0d 0f 96 0c 20 20 75 | undo()=0.... u| 000021b0 6e 64 6f 3d 31 0d 0f a0 10 20 20 c8 8e 20 71 75 |ndo=1.... .. qu| 000021c0 6e 64 6f 20 ca 0d 0f aa 0a 20 20 20 c9 20 31 0d |ndo ..... . 1.| 000021d0 0f b4 13 20 20 20 20 6e 6f 75 3d 9a 23 66 69 6c |... nou=.#fil| 000021e0 65 25 0d 0f be 10 20 20 20 20 75 6e 64 6f 3d 6e |e%.... undo=n| 000021f0 6f 75 0d 0f c8 34 20 20 20 20 c8 99 20 22 57 69 |ou...4 .. "Wi| 00002200 6d 70 45 78 74 5f 53 65 74 4e 75 6d 62 65 72 49 |mpExt_SetNumberI| 00002210 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 36 30 2c |con",,,main%,60,| 00002220 75 6e 64 6f 2d 31 0d 0f d2 16 20 20 20 20 e3 20 |undo-1.... . | 00002230 78 3d 31 20 b8 20 75 6e 64 6f 2d 31 0d 0f dc 1a |x=1 . undo-1....| 00002240 20 20 20 20 20 75 6e 64 6f 28 78 2c 31 29 3d 9a | undo(x,1)=.| 00002250 23 66 69 6c 65 25 0d 0f e6 1a 20 20 20 20 20 75 |#file%.... u| 00002260 6e 64 6f 28 78 2c 32 29 3d 9a 23 66 69 6c 65 25 |ndo(x,2)=.#file%| 00002270 0d 0f f0 09 20 20 20 20 ed 0d 0f fa 2b 20 20 20 |.... ....+ | 00002280 20 c8 99 20 22 57 69 6d 70 45 78 74 5f 53 68 61 | .. "WimpExt_Sha| 00002290 64 65 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c |deIcon",,,main%,| 000022a0 35 37 2c 30 0d 10 04 2b 20 20 20 20 c8 99 20 22 |57,0...+ .. "| 000022b0 57 69 6d 70 45 78 74 5f 53 68 61 64 65 49 63 6f |WimpExt_ShadeIco| 000022c0 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 38 2c 31 0d |n",,,main%,58,1.| 000022d0 10 0e 0a 20 20 20 c9 20 30 0d 10 18 0e 20 20 20 |... . 0.... | 000022e0 20 75 6e 64 6f 3d 31 0d 10 22 10 20 20 20 20 75 | undo=1..". u| 000022f0 6e 64 6f 28 29 3d 30 0d 10 2c 2b 20 20 20 20 c8 |ndo()=0..,+ .| 00002300 99 20 22 57 69 6d 70 45 78 74 5f 53 68 61 64 65 |. "WimpExt_Shade| 00002310 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 37 |Icon",,,main%,57| 00002320 2c 31 0d 10 36 2b 20 20 20 20 c8 99 20 22 57 69 |,1..6+ .. "Wi| 00002330 6d 70 45 78 74 5f 53 68 61 64 65 49 63 6f 6e 22 |mpExt_ShadeIcon"| 00002340 2c 2c 2c 6d 61 69 6e 25 2c 35 38 2c 30 0d 10 40 |,,,main%,58,0..@| 00002350 2f 20 20 20 20 c8 99 20 22 57 69 6d 70 45 78 74 |/ .. "WimpExt| 00002360 5f 53 65 74 4e 75 6d 62 65 72 49 63 6f 6e 22 2c |_SetNumberIcon",| 00002370 2c 2c 6d 61 69 6e 25 2c 36 30 2c 30 0d 10 4a 07 |,,main%,60,0..J.| 00002380 20 20 cb 0d 10 54 0c 20 d9 23 66 69 6c 65 25 0d | ...T. .#file%.| 00002390 10 5e 05 e1 0d 10 68 04 0d 10 72 0f dd 20 f2 66 |.^....h...r.. .f| 000023a0 69 6e 64 63 61 72 64 0d 10 7c 12 20 21 63 68 75 |indcard..|. !chu| 000023b0 6e 6b 25 3d 6d 61 69 6e 25 0d 10 86 0f 20 63 68 |nk%=main%.... ch| 000023c0 75 6e 6b 25 21 34 3d 35 0d 10 90 23 20 c8 99 20 |unk%!4=5...# .. | 000023d0 22 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 61 |"Wimp_GetIconSta| 000023e0 74 65 22 2c 2c 63 68 75 6e 6b 25 0d 10 9a 09 20 |te",,chunk%.... | 000023f0 c8 97 20 b8 0d 10 a4 27 20 c8 99 20 22 57 69 6d |.. ....' .. "Wim| 00002400 70 45 78 74 5f 53 68 61 64 65 49 63 6f 6e 22 2c |pExt_ShadeIcon",| 00002410 2c 2c 6d 61 69 6e 25 2c 35 2c 31 0d 10 ae 27 20 |,,main%,5,1...' | 00002420 c8 99 20 22 57 69 6d 70 45 78 74 5f 53 68 61 64 |.. "WimpExt_Shad| 00002430 65 49 63 6f 6e 22 2c 2c 2c 6d 61 69 6e 25 2c 35 |eIcon",,,main%,5| 00002440 2c 30 0d 10 b8 05 e1 0d ff |,0.......| 00002449