Home » CEEFAX disks » telesoftware12.adl » 17-02-89/Clock

17-02-89/Clock

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 » CEEFAX disks » telesoftware12.adl
Filename: 17-02-89/Clock
Read OK:
File size: 130A bytes
Load address: FFFF1900
Exec address: FFFF8023
File contents
   10 REM Rubic's Clock solver
   20 REM Rem by Christopher Stops
   30 REM (c) The Micro User
   40 MODE 1
   50 PROCinit
   60 PROCdrawscreen
   70 PROCstart
   80 PROCwait
   90 PROCsolve_central
  100 PROCturn_over
  110 PROCwait
  120 PROCsolved(8)
  130 PROCsolve_central
  140 FOR M%=4 TO 7
  150 PROCsolve_middle(M%)
  160 NEXT
  170 PROCturn_over
  180 PROCwait
  190 FOR M%=4 TO 7
  200 PROCsolved(M%)
  210 NEXT
  220 FOR M%=4 TO 7
  230 PROCsolve_middle(M%)
  240 NEXT
  250 FOR E%=0 TO 3
  260 PROCsolve_edge(E%)
  270 NEXT
  280 PROCdone
  290 END
  300 DEF PROCinit
  310 DIM dx%(8),dy%(8),d$(8),bx%(3),by%(3)
  320 bd%=170
  330 ld%=427
  340 dg%=341
  350 dx%(0)=ld%
  360 dy%(0)=bd%+2*dg%
  370 dx%(1)=ld%+2*dg%
  380 dy%(1)=bd%+2*dg%
  390 dx%(2)=ld%+2*dg%
  400 dy%(2)=bd%
  410 dx%(3)=ld%
  420 dy%(3)=bd%
  430 dx%(4)=ld%+dg%
  440 dy%(4)=bd%+2*dg%
  450 dx%(5)=ld%+2*dg%
  460 dy%(5)=bd%+dg%
  470 dx%(6)=ld%+dg%
  480 dy%(6)=bd%
  490 dx%(7)=ld%
  500 dy%(7)=bd%+dg%
  510 dx%(8)=ld%+dg%
  520 dy%(8)=bd%+dg%
  530 bx%(0)=ld%+dg%/2
  540 by%(0)=bd%+3/2*dg%
  550 bx%(1)=ld%+3/2*dg%
  560 by%(1)=bd%+3/2*dg%
  570 bx%(2)=ld%+3/2*dg%
  580 by%(2)=bd%+dg%/2
  590 bx%(3)=ld%+dg%/2
  600 by%(3)=bd%+dg%/2
  610 FOR R%=0 TO 8
  620 READ d$(R%)
  630 NEXT
  640 VDU 23,224,24,24,60,60,126,126,24,24
  650 VDU 23,225,24,24,24,24,24,24,24,24
  660 VDU 19,1,4;0;
  670 ENVELOPE 1,128,-4,0,0,10,0,0,80,0,0,-1,126,126
  680 ENVELOPE 2,1,5,-8,0,4,5,7,126,0,0,-1,126,126
  690 ENDPROC
  700 DATA "top left ","top right ","bottom right ","bottom left ","top middle ","middle right ","bottom middle ","middle left ","central "
  710 DEF PROCdrawscreen
  720 FOR Y%=0 TO 1023 STEP 8
  730 MOVE ld%-dg% DIV 2,Y%
  740 PLOT 21,1279,Y%
  750 MOVE ld%-dg% DIV 2+4,Y%+4
  760 PLOT 21,1279,Y%+4
  770 NEXT
  780 GCOL 0,1
  790 FOR C%=0 TO 8
  800 PROCcirc(dx%(C%),dy%(C%),128)
  810 NEXT
  820 GCOL 0,2
  830 FOR B%=0 TO 3
  840 PROCcirc(bx%(B%),by%(B%),64)
  850 NEXT
  860 GCOL 4,0
  870 PRINT TAB(17,0) "RUBIK'S CLOCK"
  880 VDU 28,0,31,7,0,30
  890 ENDPROC
  900 DEF PROCstart
  910 PROCvert("Hold the puzzle with either face up in front of you.")
  920 ENDPROC
  930 DEF PROCsolve_central
  940 IF FNask_dial(8) THEN PROCsolve_central_2
  950 PROCsolved(8)
  960 ENDPROC
  970 DEF PROCsolve_central_2
  980 PROCsolving(8)
  990 PROCall_up
 1000 PROCturn(0)
 1010 PROCvert("Set all buttons up, then turn the "+d$(0)+"dial until the "+d$(8)+"dial points to 12.")
 1020 PROCwait
 1030 PROCall_up
 1040 PROCturn(0)
 1050 PROCsolving(8)
 1060 ENDPROC
 1070 DEF PROCall_up
 1080 FOR B%=0 TO 3
 1090 PROCset_but(B%,TRUE)
 1100 NEXT
 1110 ENDPROC
 1120 DEF PROCsolve_middle(D%)
 1130 IF FNask_dial(D%) THEN PROCsolve_middle_2(D%)
 1140 PROCsolved(D%)
 1150 ENDPROC
 1160 DEF PROCsolve_middle_2(D%)
 1170 PROCsolving(D%)
 1180 PROCset_middle_buttons(D%)
 1190 PROCset_but(D%,TRUE)
 1200 PROCturn(D%+3)
 1210 PROCvert("Set buttons as shown, then turn the "+d$((D%+3) MOD 4)+"dial until the "+d$(D%)+"dial points to 12.")
 1220 PROCwait
 1230 PROCturn(D%+3)
 1240 PROCvert("Change the "+d$(D% MOD 4)+"button to be down.")
 1250 PROCset_but(D%,TRUE)
 1260 PROCset_but(D%,FALSE)
 1270 PROCwait
 1280 PROCturn(D%+3)
 1290 PROCvert("Now turn the "+d$((D%+3) MOD 4)+"dial until the "+d$(8)+"dial points to 12.")
 1300 PROCwait
 1310 PROCset_middle_buttons(D%)
 1320 PROCset_but(D%,FALSE)
 1330 PROCturn(D%+3)
 1340 PROCsolving(D%)
 1350 ENDPROC
 1360 DEF PROCset_middle_buttons(B%)
 1370 PROCset_but(B%+3,TRUE)
 1380 PROCset_but(B%+1,FALSE)
 1390 PROCset_but(B%+2,FALSE)
 1400 ENDPROC
 1410 DEF PROCsolve_edge(D%)
 1420 IF FNask_dial(D%) THEN PROCsolve_edge_2(D%)
 1430 PROCsolved(D%)
 1440 ENDPROC
 1450 DEF PROCsolve_edge_2(D%)
 1460 PROCsolving(D%)
 1470 PROCset_edge_buttons(D%)
 1480 PROCset_but(D%,TRUE)
 1490 PROCturn(D%+3)
 1500 PROCvert("Set the buttons as shown, then turn the "+d$((D%+3) MOD 4)+"dial until the "+d$(D%)+"dial points to 12.")
 1510 PROCwait
 1520 PROCturn(D%+3)
 1530 PROCvert("Change the "+d$(D%)+"button to be down.")
 1540 PROCset_but(D%,TRUE)
 1550 PROCset_but(D%,FALSE)
 1560 PROCwait
 1570 PROCturn(D%+3)
 1580 PROCvert("Now turn the "+d$((D%+3) MOD 4)+"dial until the "+d$(8)+"dial points to 12.")
 1590 PROCwait
 1600 PROCset_edge_buttons(D%)
 1610 PROCset_but(D%,FALSE)
 1620 PROCturn(D%+3)
 1630 PROCsolving(D%)
 1640 ENDPROC
 1650 DEF PROCset_edge_buttons(B%)
 1660 PROCset_but(B%+1,TRUE)
 1670 PROCset_but(B%+2,TRUE)
 1680 PROCset_but(B%+3,TRUE)
 1690 ENDPROC
 1700 DEF PROCdone
 1710 PROCvert("You have now solved Rubik's Clock!")
 1720 SOUND 1,2,100,30
 1730 ENDPROC
 1740 DEF PROCturn_over
 1750 PROCvert("Now turn the puzzle over to the other side.")
 1760 ENDPROC
 1770 DEF PROCok(D%)
 1780 MOVE dx%(D%)-64,dy%(D%)+16
 1790 VDU 5
 1800 PRINT "OK ?"
 1810 VDU 4
 1820 ENDPROC
 1830 DEF PROCsolving(D%)
 1840 MOVE dx%(D%)-112,dy%(D%)+16
 1850 VDU 5
 1860 PRINT "SOLVING"
 1870 VDU 4
 1880 ENDPROC
 1890 DEF PROCsolved(D%)
 1900 MOVE dx%(D%)-16,dy%(D%)+112
 1910 VDU 5,224,10,8,225,10,8,225,10,8,8,8
 1920 PRINT "SOLVED"
 1930 VDU 4
 1940 ENDPROC
 1950 DEF PROCturn(D%)
 1960 MOVE dx%(D% MOD 4)-64,dy%(D% MOD 4)-50
 1970 VDU 5
 1980 PRINT "TURN"
 1990 VDU 4
 2000 ENDPROC
 2010 DEF PROCset_but(B%,up%)
 2020 MOVE bx%(B% MOD 4)-64,by%(B% MOD 4)+16
 2030 VDU 5
 2040 IF up% PRINT " UP " ELSE PRINT "DOWN"
 2050 VDU 4
 2060 ENDPROC
 2070 DEF PROCvert(T$)
 2080 P%=INSTR(T$, " ")
 2090 REPEAT
 2100 PRINT LEFT$(T$, P%-1)
 2110 T$=RIGHT$(T$, LEN(T$) - P%)
 2120 P%=INSTR(T$, " ")
 2130 UNTIL P%=0
 2140 PRINT T$
 2150 ENDPROC
 2160 DEF PROCcirc(X%,Y%,R%)
 2170 FOR S%=-R% TO R% STEP 4
 2180 Z%=SQR(R%*R%-S%*S%)
 2190 MOVE X%+S%,Y%+Z%
 2200 DRAW X%+S%,Y%-Z%
 2210 NEXT
 2220 ENDPROC
 2230 DEF PROCwait
 2240 PRINT
 2250 PROCvert("Any key to cont...")
 2260 SOUND 1,1,150,1
 2270 *FX 21 0
 2280 G%=GET
 2290 CLS
 2300 ENDPROC
 2310 DEF FNask_dial(D%)
 2320 *FX 21 0
 2330 A%=152
 2340 X%=0
 2350 PROCvert("Is the "+d$(D%)+"dial at 12?")
 2360 SOUND 1,1,250,1
 2370 REPEAT
 2380 REPEAT
 2390 PROCok(D%)
 2400 PROCdelay
 2410 PROCok(D%)
 2420 PROCdelay
 2430 UNTIL (USR(&FFF4) AND &01000000)=0
 2440 G$=GET$
 2450 UNTIL INSTR("YyNn",G$) <> 0
 2460 CLS
 2470 IF INSTR("Yy",G$)=0 THEN =TRUE ELSE =FALSE
 2480 DEF PROCdelay
 2490 N%=TIME
 2500 REPEAT UNTIL TIME-N%>10
 2510 ENDPROC

 � Rubic's Clock solver
 � Rem by Christopher Stops
 � (c) The Micro User
( � 1
2
 �init
< �drawscreen
F �start
P
 �wait
Z �solve_central
d �turn_over
n
 �wait
x �solved(8)
� �solve_central
� � M%=4 � 7
� �solve_middle(M%)
� �
� �turn_over
�
 �wait
� � M%=4 � 7
� �solved(M%)
� �
� � M%=4 � 7
� �solve_middle(M%)
� �
� � E%=0 � 3
 �solve_edge(E%)
 �

 �done
" �
, � �init
6( � dx%(8),dy%(8),d$(8),bx%(3),by%(3)
@ bd%=170
J ld%=427
T dg%=341
^ dx%(0)=ld%
h dy%(0)=bd%+2*dg%
r dx%(1)=ld%+2*dg%
| dy%(1)=bd%+2*dg%
� dx%(2)=ld%+2*dg%
� dy%(2)=bd%
� dx%(3)=ld%
� dy%(3)=bd%
� dx%(4)=ld%+dg%
� dy%(4)=bd%+2*dg%
� dx%(5)=ld%+2*dg%
� dy%(5)=bd%+dg%
� dx%(6)=ld%+dg%
� dy%(6)=bd%
� dx%(7)=ld%
� dy%(7)=bd%+dg%
� dx%(8)=ld%+dg%
 dy%(8)=bd%+dg%
 bx%(0)=ld%+dg%/2
 by%(0)=bd%+3/2*dg%
& bx%(1)=ld%+3/2*dg%
0 by%(1)=bd%+3/2*dg%
: bx%(2)=ld%+3/2*dg%
D by%(2)=bd%+dg%/2
N bx%(3)=ld%+dg%/2
X by%(3)=bd%+dg%/2
b � R%=0 � 8
l
 � d$(R%)
v �
�' � 23,224,24,24,60,60,126,126,24,24
�% � 23,225,24,24,24,24,24,24,24,24
� � 19,1,4;0;
�, � 1,128,-4,0,0,10,0,0,80,0,0,-1,126,126
�* � 2,1,5,-8,0,4,5,7,126,0,0,-1,126,126
� �
�� � "top left ","top right ","bottom right ","bottom left ","top middle ","middle right ","bottom middle ","middle left ","central "
� � �drawscreen
� � Y%=0 � 1023 � 8
� � ld%-dg% � 2,Y%
� � 21,1279,Y%
� � ld%-dg% � 2+4,Y%+4
� � 21,1279,Y%+4
 �

 � 0,1
 � C%=0 � 8
  �circ(dx%(C%),dy%(C%),128)
* �
4
 � 0,2
> � B%=0 � 3
H �circ(bx%(B%),by%(B%),64)
R �
\
 � 4,0
f � �17,0) "RUBIK'S CLOCK"
p � 28,0,31,7,0,30
z �
�
 � �start
�B �vert("Hold the puzzle with either face up in front of you.")
� �
� � �solve_central
�& � �ask_dial(8) � �solve_central_2
� �solved(8)
� �
� � �solve_central_2
� �solving(8)
� �all_up
�
 �turn(0)
�c �vert("Set all buttons up, then turn the "+d$(0)+"dial until the "+d$(8)+"dial points to 12.")
�
 �wait
 �all_up

 �turn(0)
 �solving(8)
$ �
. � �all_up
8 � B%=0 � 3
B �set_but(B%,�)
L �
V �
` � �solve_middle(D%)
j* � �ask_dial(D%) � �solve_middle_2(D%)
t �solved(D%)
~ �
� � �solve_middle_2(D%)
� �solving(D%)
� �set_middle_buttons(D%)
� �set_but(D%,�)
� �turn(D%+3)
�o �vert("Set buttons as shown, then turn the "+d$((D%+3) � 4)+"dial until the "+d$(D%)+"dial points to 12.")
�
 �wait
� �turn(D%+3)
�9 �vert("Change the "+d$(D% � 4)+"button to be down.")
� �set_but(D%,�)
� �set_but(D%,�)
�
 �wait
 �turn(D%+3)

W �vert("Now turn the "+d$((D%+3) � 4)+"dial until the "+d$(8)+"dial points to 12.")

 �wait
 �set_middle_buttons(D%)
( �set_but(D%,�)
2 �turn(D%+3)
< �solving(D%)
F �
P � �set_middle_buttons(B%)
Z �set_but(B%+3,�)
d �set_but(B%+1,�)
n �set_but(B%+2,�)
x �
� � �solve_edge(D%)
�( � �ask_dial(D%) � �solve_edge_2(D%)
� �solved(D%)
� �
� � �solve_edge_2(D%)
� �solving(D%)
� �set_edge_buttons(D%)
� �set_but(D%,�)
� �turn(D%+3)
�s �vert("Set the buttons as shown, then turn the "+d$((D%+3) � 4)+"dial until the "+d$(D%)+"dial points to 12.")
�
 �wait
� �turn(D%+3)
�5 �vert("Change the "+d$(D%)+"button to be down.")
 �set_but(D%,�)
 �set_but(D%,�)

 �wait
" �turn(D%+3)
,W �vert("Now turn the "+d$((D%+3) � 4)+"dial until the "+d$(8)+"dial points to 12.")
6
 �wait
@ �set_edge_buttons(D%)
J �set_but(D%,�)
T �turn(D%+3)
^ �solving(D%)
h �
r � �set_edge_buttons(B%)
| �set_but(B%+1,�)
� �set_but(B%+2,�)
� �set_but(B%+3,�)
� �
� � �done
�0 �vert("You have now solved Rubik's Clock!")
� � 1,2,100,30
� �
� � �turn_over
�9 �vert("Now turn the puzzle over to the other side.")
� �
� � �ok(D%)
� � dx%(D%)-64,dy%(D%)+16
� � 5

 � "OK ?"
 � 4
 �
& � �solving(D%)
0 � dx%(D%)-112,dy%(D%)+16
: � 5
D � "SOLVING"
N � 4
X �
b � �solved(D%)
l � dx%(D%)-16,dy%(D%)+112
v' � 5,224,10,8,225,10,8,225,10,8,8,8
� � "SOLVED"
� � 4
� �
� � �turn(D%)
�$ � dx%(D% � 4)-64,dy%(D% � 4)-50
� � 5
�
 � "TURN"
� � 4
� �
� � �set_but(B%,up%)
�$ � bx%(B% � 4)-64,by%(B% � 4)+16
� � 5
� � up% � " UP " � � "DOWN"
 � 4
 �
 � �vert(T$)
  P%=�T$, " ")
* �
4 � �T$, P%-1)
> T$=�T$, �(T$) - P%)
H P%=�T$, " ")
R � P%=0
\	 � T$
f �
p � �circ(X%,Y%,R%)
z � S%=-R% � R% � 4
� Z%=�(R%*R%-S%*S%)
� � X%+S%,Y%+Z%
� � X%+S%,Y%-Z%
� �
� �
� � �wait
� �
�  �vert("Any key to cont...")
� � 1,1,150,1
�
 *FX 21 0
�	 G%=�
� �
� �
	 � �ask_dial(D%)
	
 *FX 21 0
	 A%=152
	$	 X%=0
	.* �vert("Is the "+d$(D%)+"dial at 12?")
	8 � 1,1,250,1
	B �
	L �
	V �ok(D%)
	` �delay
	j �ok(D%)
	t �delay
	~ � (�(&FFF4) � &01000000)=0
	�	 G$=�
	� � �"YyNn",G$) <> 0
	� �
	� � �"Yy",G$)=0 � =� � =�
	�
 � �delay
	�	 N%=�
	� � � �-N%>10
	� �
�
00000000  0d 00 0a 1b 20 f4 20 52  75 62 69 63 27 73 20 43  |.... . Rubic's C|
00000010  6c 6f 63 6b 20 73 6f 6c  76 65 72 0d 00 14 1f 20  |lock solver.... |
00000020  f4 20 52 65 6d 20 62 79  20 43 68 72 69 73 74 6f  |. Rem by Christo|
00000030  70 68 65 72 20 53 74 6f  70 73 0d 00 1e 19 20 f4  |pher Stops.... .|
00000040  20 28 63 29 20 54 68 65  20 4d 69 63 72 6f 20 55  | (c) The Micro U|
00000050  73 65 72 0d 00 28 08 20  eb 20 31 0d 00 32 0a 20  |ser..(. . 1..2. |
00000060  f2 69 6e 69 74 0d 00 3c  10 20 f2 64 72 61 77 73  |.init..<. .draws|
00000070  63 72 65 65 6e 0d 00 46  0b 20 f2 73 74 61 72 74  |creen..F. .start|
00000080  0d 00 50 0a 20 f2 77 61  69 74 0d 00 5a 13 20 f2  |..P. .wait..Z. .|
00000090  73 6f 6c 76 65 5f 63 65  6e 74 72 61 6c 0d 00 64  |solve_central..d|
000000a0  0f 20 f2 74 75 72 6e 5f  6f 76 65 72 0d 00 6e 0a  |. .turn_over..n.|
000000b0  20 f2 77 61 69 74 0d 00  78 0f 20 f2 73 6f 6c 76  | .wait..x. .solv|
000000c0  65 64 28 38 29 0d 00 82  13 20 f2 73 6f 6c 76 65  |ed(8).... .solve|
000000d0  5f 63 65 6e 74 72 61 6c  0d 00 8c 0f 20 e3 20 4d  |_central.... . M|
000000e0  25 3d 34 20 b8 20 37 0d  00 96 16 20 f2 73 6f 6c  |%=4 . 7.... .sol|
000000f0  76 65 5f 6d 69 64 64 6c  65 28 4d 25 29 0d 00 a0  |ve_middle(M%)...|
00000100  06 20 ed 0d 00 aa 0f 20  f2 74 75 72 6e 5f 6f 76  |. ..... .turn_ov|
00000110  65 72 0d 00 b4 0a 20 f2  77 61 69 74 0d 00 be 0f  |er.... .wait....|
00000120  20 e3 20 4d 25 3d 34 20  b8 20 37 0d 00 c8 10 20  | . M%=4 . 7.... |
00000130  f2 73 6f 6c 76 65 64 28  4d 25 29 0d 00 d2 06 20  |.solved(M%).... |
00000140  ed 0d 00 dc 0f 20 e3 20  4d 25 3d 34 20 b8 20 37  |..... . M%=4 . 7|
00000150  0d 00 e6 16 20 f2 73 6f  6c 76 65 5f 6d 69 64 64  |.... .solve_midd|
00000160  6c 65 28 4d 25 29 0d 00  f0 06 20 ed 0d 00 fa 0f  |le(M%).... .....|
00000170  20 e3 20 45 25 3d 30 20  b8 20 33 0d 01 04 14 20  | . E%=0 . 3.... |
00000180  f2 73 6f 6c 76 65 5f 65  64 67 65 28 45 25 29 0d  |.solve_edge(E%).|
00000190  01 0e 06 20 ed 0d 01 18  0a 20 f2 64 6f 6e 65 0d  |... ..... .done.|
000001a0  01 22 06 20 e0 0d 01 2c  0c 20 dd 20 f2 69 6e 69  |.". ...,. . .ini|
000001b0  74 0d 01 36 28 20 de 20  64 78 25 28 38 29 2c 64  |t..6( . dx%(8),d|
000001c0  79 25 28 38 29 2c 64 24  28 38 29 2c 62 78 25 28  |y%(8),d$(8),bx%(|
000001d0  33 29 2c 62 79 25 28 33  29 0d 01 40 0c 20 62 64  |3),by%(3)..@. bd|
000001e0  25 3d 31 37 30 0d 01 4a  0c 20 6c 64 25 3d 34 32  |%=170..J. ld%=42|
000001f0  37 0d 01 54 0c 20 64 67  25 3d 33 34 31 0d 01 5e  |7..T. dg%=341..^|
00000200  0f 20 64 78 25 28 30 29  3d 6c 64 25 0d 01 68 15  |. dx%(0)=ld%..h.|
00000210  20 64 79 25 28 30 29 3d  62 64 25 2b 32 2a 64 67  | dy%(0)=bd%+2*dg|
00000220  25 0d 01 72 15 20 64 78  25 28 31 29 3d 6c 64 25  |%..r. dx%(1)=ld%|
00000230  2b 32 2a 64 67 25 0d 01  7c 15 20 64 79 25 28 31  |+2*dg%..|. dy%(1|
00000240  29 3d 62 64 25 2b 32 2a  64 67 25 0d 01 86 15 20  |)=bd%+2*dg%.... |
00000250  64 78 25 28 32 29 3d 6c  64 25 2b 32 2a 64 67 25  |dx%(2)=ld%+2*dg%|
00000260  0d 01 90 0f 20 64 79 25  28 32 29 3d 62 64 25 0d  |.... dy%(2)=bd%.|
00000270  01 9a 0f 20 64 78 25 28  33 29 3d 6c 64 25 0d 01  |... dx%(3)=ld%..|
00000280  a4 0f 20 64 79 25 28 33  29 3d 62 64 25 0d 01 ae  |.. dy%(3)=bd%...|
00000290  13 20 64 78 25 28 34 29  3d 6c 64 25 2b 64 67 25  |. dx%(4)=ld%+dg%|
000002a0  0d 01 b8 15 20 64 79 25  28 34 29 3d 62 64 25 2b  |.... dy%(4)=bd%+|
000002b0  32 2a 64 67 25 0d 01 c2  15 20 64 78 25 28 35 29  |2*dg%.... dx%(5)|
000002c0  3d 6c 64 25 2b 32 2a 64  67 25 0d 01 cc 13 20 64  |=ld%+2*dg%.... d|
000002d0  79 25 28 35 29 3d 62 64  25 2b 64 67 25 0d 01 d6  |y%(5)=bd%+dg%...|
000002e0  13 20 64 78 25 28 36 29  3d 6c 64 25 2b 64 67 25  |. dx%(6)=ld%+dg%|
000002f0  0d 01 e0 0f 20 64 79 25  28 36 29 3d 62 64 25 0d  |.... dy%(6)=bd%.|
00000300  01 ea 0f 20 64 78 25 28  37 29 3d 6c 64 25 0d 01  |... dx%(7)=ld%..|
00000310  f4 13 20 64 79 25 28 37  29 3d 62 64 25 2b 64 67  |.. dy%(7)=bd%+dg|
00000320  25 0d 01 fe 13 20 64 78  25 28 38 29 3d 6c 64 25  |%.... dx%(8)=ld%|
00000330  2b 64 67 25 0d 02 08 13  20 64 79 25 28 38 29 3d  |+dg%.... dy%(8)=|
00000340  62 64 25 2b 64 67 25 0d  02 12 15 20 62 78 25 28  |bd%+dg%.... bx%(|
00000350  30 29 3d 6c 64 25 2b 64  67 25 2f 32 0d 02 1c 17  |0)=ld%+dg%/2....|
00000360  20 62 79 25 28 30 29 3d  62 64 25 2b 33 2f 32 2a  | by%(0)=bd%+3/2*|
00000370  64 67 25 0d 02 26 17 20  62 78 25 28 31 29 3d 6c  |dg%..&. bx%(1)=l|
00000380  64 25 2b 33 2f 32 2a 64  67 25 0d 02 30 17 20 62  |d%+3/2*dg%..0. b|
00000390  79 25 28 31 29 3d 62 64  25 2b 33 2f 32 2a 64 67  |y%(1)=bd%+3/2*dg|
000003a0  25 0d 02 3a 17 20 62 78  25 28 32 29 3d 6c 64 25  |%..:. bx%(2)=ld%|
000003b0  2b 33 2f 32 2a 64 67 25  0d 02 44 15 20 62 79 25  |+3/2*dg%..D. by%|
000003c0  28 32 29 3d 62 64 25 2b  64 67 25 2f 32 0d 02 4e  |(2)=bd%+dg%/2..N|
000003d0  15 20 62 78 25 28 33 29  3d 6c 64 25 2b 64 67 25  |. bx%(3)=ld%+dg%|
000003e0  2f 32 0d 02 58 15 20 62  79 25 28 33 29 3d 62 64  |/2..X. by%(3)=bd|
000003f0  25 2b 64 67 25 2f 32 0d  02 62 0f 20 e3 20 52 25  |%+dg%/2..b. . R%|
00000400  3d 30 20 b8 20 38 0d 02  6c 0d 20 f3 20 64 24 28  |=0 . 8..l. . d$(|
00000410  52 25 29 0d 02 76 06 20  ed 0d 02 80 27 20 ef 20  |R%)..v. ....' . |
00000420  32 33 2c 32 32 34 2c 32  34 2c 32 34 2c 36 30 2c  |23,224,24,24,60,|
00000430  36 30 2c 31 32 36 2c 31  32 36 2c 32 34 2c 32 34  |60,126,126,24,24|
00000440  0d 02 8a 25 20 ef 20 32  33 2c 32 32 35 2c 32 34  |...% . 23,225,24|
00000450  2c 32 34 2c 32 34 2c 32  34 2c 32 34 2c 32 34 2c  |,24,24,24,24,24,|
00000460  32 34 2c 32 34 0d 02 94  10 20 ef 20 31 39 2c 31  |24,24.... . 19,1|
00000470  2c 34 3b 30 3b 0d 02 9e  2c 20 e2 20 31 2c 31 32  |,4;0;..., . 1,12|
00000480  38 2c 2d 34 2c 30 2c 30  2c 31 30 2c 30 2c 30 2c  |8,-4,0,0,10,0,0,|
00000490  38 30 2c 30 2c 30 2c 2d  31 2c 31 32 36 2c 31 32  |80,0,0,-1,126,12|
000004a0  36 0d 02 a8 2a 20 e2 20  32 2c 31 2c 35 2c 2d 38  |6...* . 2,1,5,-8|
000004b0  2c 30 2c 34 2c 35 2c 37  2c 31 32 36 2c 30 2c 30  |,0,4,5,7,126,0,0|
000004c0  2c 2d 31 2c 31 32 36 2c  31 32 36 0d 02 b2 06 20  |,-1,126,126.... |
000004d0  e1 0d 02 bc 87 20 dc 20  22 74 6f 70 20 6c 65 66  |..... . "top lef|
000004e0  74 20 22 2c 22 74 6f 70  20 72 69 67 68 74 20 22  |t ","top right "|
000004f0  2c 22 62 6f 74 74 6f 6d  20 72 69 67 68 74 20 22  |,"bottom right "|
00000500  2c 22 62 6f 74 74 6f 6d  20 6c 65 66 74 20 22 2c  |,"bottom left ",|
00000510  22 74 6f 70 20 6d 69 64  64 6c 65 20 22 2c 22 6d  |"top middle ","m|
00000520  69 64 64 6c 65 20 72 69  67 68 74 20 22 2c 22 62  |iddle right ","b|
00000530  6f 74 74 6f 6d 20 6d 69  64 64 6c 65 20 22 2c 22  |ottom middle ","|
00000540  6d 69 64 64 6c 65 20 6c  65 66 74 20 22 2c 22 63  |middle left ","c|
00000550  65 6e 74 72 61 6c 20 22  0d 02 c6 12 20 dd 20 f2  |entral ".... . .|
00000560  64 72 61 77 73 63 72 65  65 6e 0d 02 d0 16 20 e3  |drawscreen.... .|
00000570  20 59 25 3d 30 20 b8 20  31 30 32 33 20 88 20 38  | Y%=0 . 1023 . 8|
00000580  0d 02 da 15 20 ec 20 6c  64 25 2d 64 67 25 20 81  |.... . ld%-dg% .|
00000590  20 32 2c 59 25 0d 02 e4  11 20 f0 20 32 31 2c 31  | 2,Y%.... . 21,1|
000005a0  32 37 39 2c 59 25 0d 02  ee 19 20 ec 20 6c 64 25  |279,Y%.... . ld%|
000005b0  2d 64 67 25 20 81 20 32  2b 34 2c 59 25 2b 34 0d  |-dg% . 2+4,Y%+4.|
000005c0  02 f8 13 20 f0 20 32 31  2c 31 32 37 39 2c 59 25  |... . 21,1279,Y%|
000005d0  2b 34 0d 03 02 06 20 ed  0d 03 0c 0a 20 e6 20 30  |+4.... ..... . 0|
000005e0  2c 31 0d 03 16 0f 20 e3  20 43 25 3d 30 20 b8 20  |,1.... . C%=0 . |
000005f0  38 0d 03 20 1f 20 f2 63  69 72 63 28 64 78 25 28  |8.. . .circ(dx%(|
00000600  43 25 29 2c 64 79 25 28  43 25 29 2c 31 32 38 29  |C%),dy%(C%),128)|
00000610  0d 03 2a 06 20 ed 0d 03  34 0a 20 e6 20 30 2c 32  |..*. ...4. . 0,2|
00000620  0d 03 3e 0f 20 e3 20 42  25 3d 30 20 b8 20 33 0d  |..>. . B%=0 . 3.|
00000630  03 48 1e 20 f2 63 69 72  63 28 62 78 25 28 42 25  |.H. .circ(bx%(B%|
00000640  29 2c 62 79 25 28 42 25  29 2c 36 34 29 0d 03 52  |),by%(B%),64)..R|
00000650  06 20 ed 0d 03 5c 0a 20  e6 20 34 2c 30 0d 03 66  |. ...\. . 4,0..f|
00000660  1d 20 f1 20 8a 31 37 2c  30 29 20 22 52 55 42 49  |. . .17,0) "RUBI|
00000670  4b 27 53 20 43 4c 4f 43  4b 22 0d 03 70 15 20 ef  |K'S CLOCK"..p. .|
00000680  20 32 38 2c 30 2c 33 31  2c 37 2c 30 2c 33 30 0d  | 28,0,31,7,0,30.|
00000690  03 7a 06 20 e1 0d 03 84  0d 20 dd 20 f2 73 74 61  |.z. ..... . .sta|
000006a0  72 74 0d 03 8e 42 20 f2  76 65 72 74 28 22 48 6f  |rt...B .vert("Ho|
000006b0  6c 64 20 74 68 65 20 70  75 7a 7a 6c 65 20 77 69  |ld the puzzle wi|
000006c0  74 68 20 65 69 74 68 65  72 20 66 61 63 65 20 75  |th either face u|
000006d0  70 20 69 6e 20 66 72 6f  6e 74 20 6f 66 20 79 6f  |p in front of yo|
000006e0  75 2e 22 29 0d 03 98 06  20 e1 0d 03 a2 15 20 dd  |u.").... ..... .|
000006f0  20 f2 73 6f 6c 76 65 5f  63 65 6e 74 72 61 6c 0d  | .solve_central.|
00000700  03 ac 26 20 e7 20 a4 61  73 6b 5f 64 69 61 6c 28  |..& . .ask_dial(|
00000710  38 29 20 8c 20 f2 73 6f  6c 76 65 5f 63 65 6e 74  |8) . .solve_cent|
00000720  72 61 6c 5f 32 0d 03 b6  0f 20 f2 73 6f 6c 76 65  |ral_2.... .solve|
00000730  64 28 38 29 0d 03 c0 06  20 e1 0d 03 ca 17 20 dd  |d(8).... ..... .|
00000740  20 f2 73 6f 6c 76 65 5f  63 65 6e 74 72 61 6c 5f  | .solve_central_|
00000750  32 0d 03 d4 10 20 f2 73  6f 6c 76 69 6e 67 28 38  |2.... .solving(8|
00000760  29 0d 03 de 0c 20 f2 61  6c 6c 5f 75 70 0d 03 e8  |).... .all_up...|
00000770  0d 20 f2 74 75 72 6e 28  30 29 0d 03 f2 63 20 f2  |. .turn(0)...c .|
00000780  76 65 72 74 28 22 53 65  74 20 61 6c 6c 20 62 75  |vert("Set all bu|
00000790  74 74 6f 6e 73 20 75 70  2c 20 74 68 65 6e 20 74  |ttons up, then t|
000007a0  75 72 6e 20 74 68 65 20  22 2b 64 24 28 30 29 2b  |urn the "+d$(0)+|
000007b0  22 64 69 61 6c 20 75 6e  74 69 6c 20 74 68 65 20  |"dial until the |
000007c0  22 2b 64 24 28 38 29 2b  22 64 69 61 6c 20 70 6f  |"+d$(8)+"dial po|
000007d0  69 6e 74 73 20 74 6f 20  31 32 2e 22 29 0d 03 fc  |ints to 12.")...|
000007e0  0a 20 f2 77 61 69 74 0d  04 06 0c 20 f2 61 6c 6c  |. .wait.... .all|
000007f0  5f 75 70 0d 04 10 0d 20  f2 74 75 72 6e 28 30 29  |_up.... .turn(0)|
00000800  0d 04 1a 10 20 f2 73 6f  6c 76 69 6e 67 28 38 29  |.... .solving(8)|
00000810  0d 04 24 06 20 e1 0d 04  2e 0e 20 dd 20 f2 61 6c  |..$. ..... . .al|
00000820  6c 5f 75 70 0d 04 38 0f  20 e3 20 42 25 3d 30 20  |l_up..8. . B%=0 |
00000830  b8 20 33 0d 04 42 13 20  f2 73 65 74 5f 62 75 74  |. 3..B. .set_but|
00000840  28 42 25 2c b9 29 0d 04  4c 06 20 ed 0d 04 56 06  |(B%,.)..L. ...V.|
00000850  20 e1 0d 04 60 18 20 dd  20 f2 73 6f 6c 76 65 5f  | ...`. . .solve_|
00000860  6d 69 64 64 6c 65 28 44  25 29 0d 04 6a 2a 20 e7  |middle(D%)..j* .|
00000870  20 a4 61 73 6b 5f 64 69  61 6c 28 44 25 29 20 8c  | .ask_dial(D%) .|
00000880  20 f2 73 6f 6c 76 65 5f  6d 69 64 64 6c 65 5f 32  | .solve_middle_2|
00000890  28 44 25 29 0d 04 74 10  20 f2 73 6f 6c 76 65 64  |(D%)..t. .solved|
000008a0  28 44 25 29 0d 04 7e 06  20 e1 0d 04 88 1a 20 dd  |(D%)..~. ..... .|
000008b0  20 f2 73 6f 6c 76 65 5f  6d 69 64 64 6c 65 5f 32  | .solve_middle_2|
000008c0  28 44 25 29 0d 04 92 11  20 f2 73 6f 6c 76 69 6e  |(D%).... .solvin|
000008d0  67 28 44 25 29 0d 04 9c  1c 20 f2 73 65 74 5f 6d  |g(D%).... .set_m|
000008e0  69 64 64 6c 65 5f 62 75  74 74 6f 6e 73 28 44 25  |iddle_buttons(D%|
000008f0  29 0d 04 a6 13 20 f2 73  65 74 5f 62 75 74 28 44  |).... .set_but(D|
00000900  25 2c b9 29 0d 04 b0 10  20 f2 74 75 72 6e 28 44  |%,.).... .turn(D|
00000910  25 2b 33 29 0d 04 ba 6f  20 f2 76 65 72 74 28 22  |%+3)...o .vert("|
00000920  53 65 74 20 62 75 74 74  6f 6e 73 20 61 73 20 73  |Set buttons as s|
00000930  68 6f 77 6e 2c 20 74 68  65 6e 20 74 75 72 6e 20  |hown, then turn |
00000940  74 68 65 20 22 2b 64 24  28 28 44 25 2b 33 29 20  |the "+d$((D%+3) |
00000950  83 20 34 29 2b 22 64 69  61 6c 20 75 6e 74 69 6c  |. 4)+"dial until|
00000960  20 74 68 65 20 22 2b 64  24 28 44 25 29 2b 22 64  | the "+d$(D%)+"d|
00000970  69 61 6c 20 70 6f 69 6e  74 73 20 74 6f 20 31 32  |ial points to 12|
00000980  2e 22 29 0d 04 c4 0a 20  f2 77 61 69 74 0d 04 ce  |.").... .wait...|
00000990  10 20 f2 74 75 72 6e 28  44 25 2b 33 29 0d 04 d8  |. .turn(D%+3)...|
000009a0  39 20 f2 76 65 72 74 28  22 43 68 61 6e 67 65 20  |9 .vert("Change |
000009b0  74 68 65 20 22 2b 64 24  28 44 25 20 83 20 34 29  |the "+d$(D% . 4)|
000009c0  2b 22 62 75 74 74 6f 6e  20 74 6f 20 62 65 20 64  |+"button to be d|
000009d0  6f 77 6e 2e 22 29 0d 04  e2 13 20 f2 73 65 74 5f  |own.").... .set_|
000009e0  62 75 74 28 44 25 2c b9  29 0d 04 ec 13 20 f2 73  |but(D%,.).... .s|
000009f0  65 74 5f 62 75 74 28 44  25 2c a3 29 0d 04 f6 0a  |et_but(D%,.)....|
00000a00  20 f2 77 61 69 74 0d 05  00 10 20 f2 74 75 72 6e  | .wait.... .turn|
00000a10  28 44 25 2b 33 29 0d 05  0a 57 20 f2 76 65 72 74  |(D%+3)...W .vert|
00000a20  28 22 4e 6f 77 20 74 75  72 6e 20 74 68 65 20 22  |("Now turn the "|
00000a30  2b 64 24 28 28 44 25 2b  33 29 20 83 20 34 29 2b  |+d$((D%+3) . 4)+|
00000a40  22 64 69 61 6c 20 75 6e  74 69 6c 20 74 68 65 20  |"dial until the |
00000a50  22 2b 64 24 28 38 29 2b  22 64 69 61 6c 20 70 6f  |"+d$(8)+"dial po|
00000a60  69 6e 74 73 20 74 6f 20  31 32 2e 22 29 0d 05 14  |ints to 12.")...|
00000a70  0a 20 f2 77 61 69 74 0d  05 1e 1c 20 f2 73 65 74  |. .wait.... .set|
00000a80  5f 6d 69 64 64 6c 65 5f  62 75 74 74 6f 6e 73 28  |_middle_buttons(|
00000a90  44 25 29 0d 05 28 13 20  f2 73 65 74 5f 62 75 74  |D%)..(. .set_but|
00000aa0  28 44 25 2c a3 29 0d 05  32 10 20 f2 74 75 72 6e  |(D%,.)..2. .turn|
00000ab0  28 44 25 2b 33 29 0d 05  3c 11 20 f2 73 6f 6c 76  |(D%+3)..<. .solv|
00000ac0  69 6e 67 28 44 25 29 0d  05 46 06 20 e1 0d 05 50  |ing(D%)..F. ...P|
00000ad0  1e 20 dd 20 f2 73 65 74  5f 6d 69 64 64 6c 65 5f  |. . .set_middle_|
00000ae0  62 75 74 74 6f 6e 73 28  42 25 29 0d 05 5a 15 20  |buttons(B%)..Z. |
00000af0  f2 73 65 74 5f 62 75 74  28 42 25 2b 33 2c b9 29  |.set_but(B%+3,.)|
00000b00  0d 05 64 15 20 f2 73 65  74 5f 62 75 74 28 42 25  |..d. .set_but(B%|
00000b10  2b 31 2c a3 29 0d 05 6e  15 20 f2 73 65 74 5f 62  |+1,.)..n. .set_b|
00000b20  75 74 28 42 25 2b 32 2c  a3 29 0d 05 78 06 20 e1  |ut(B%+2,.)..x. .|
00000b30  0d 05 82 16 20 dd 20 f2  73 6f 6c 76 65 5f 65 64  |.... . .solve_ed|
00000b40  67 65 28 44 25 29 0d 05  8c 28 20 e7 20 a4 61 73  |ge(D%)...( . .as|
00000b50  6b 5f 64 69 61 6c 28 44  25 29 20 8c 20 f2 73 6f  |k_dial(D%) . .so|
00000b60  6c 76 65 5f 65 64 67 65  5f 32 28 44 25 29 0d 05  |lve_edge_2(D%)..|
00000b70  96 10 20 f2 73 6f 6c 76  65 64 28 44 25 29 0d 05  |.. .solved(D%)..|
00000b80  a0 06 20 e1 0d 05 aa 18  20 dd 20 f2 73 6f 6c 76  |.. ..... . .solv|
00000b90  65 5f 65 64 67 65 5f 32  28 44 25 29 0d 05 b4 11  |e_edge_2(D%)....|
00000ba0  20 f2 73 6f 6c 76 69 6e  67 28 44 25 29 0d 05 be  | .solving(D%)...|
00000bb0  1a 20 f2 73 65 74 5f 65  64 67 65 5f 62 75 74 74  |. .set_edge_butt|
00000bc0  6f 6e 73 28 44 25 29 0d  05 c8 13 20 f2 73 65 74  |ons(D%).... .set|
00000bd0  5f 62 75 74 28 44 25 2c  b9 29 0d 05 d2 10 20 f2  |_but(D%,.).... .|
00000be0  74 75 72 6e 28 44 25 2b  33 29 0d 05 dc 73 20 f2  |turn(D%+3)...s .|
00000bf0  76 65 72 74 28 22 53 65  74 20 74 68 65 20 62 75  |vert("Set the bu|
00000c00  74 74 6f 6e 73 20 61 73  20 73 68 6f 77 6e 2c 20  |ttons as shown, |
00000c10  74 68 65 6e 20 74 75 72  6e 20 74 68 65 20 22 2b  |then turn the "+|
00000c20  64 24 28 28 44 25 2b 33  29 20 83 20 34 29 2b 22  |d$((D%+3) . 4)+"|
00000c30  64 69 61 6c 20 75 6e 74  69 6c 20 74 68 65 20 22  |dial until the "|
00000c40  2b 64 24 28 44 25 29 2b  22 64 69 61 6c 20 70 6f  |+d$(D%)+"dial po|
00000c50  69 6e 74 73 20 74 6f 20  31 32 2e 22 29 0d 05 e6  |ints to 12.")...|
00000c60  0a 20 f2 77 61 69 74 0d  05 f0 10 20 f2 74 75 72  |. .wait.... .tur|
00000c70  6e 28 44 25 2b 33 29 0d  05 fa 35 20 f2 76 65 72  |n(D%+3)...5 .ver|
00000c80  74 28 22 43 68 61 6e 67  65 20 74 68 65 20 22 2b  |t("Change the "+|
00000c90  64 24 28 44 25 29 2b 22  62 75 74 74 6f 6e 20 74  |d$(D%)+"button t|
00000ca0  6f 20 62 65 20 64 6f 77  6e 2e 22 29 0d 06 04 13  |o be down.")....|
00000cb0  20 f2 73 65 74 5f 62 75  74 28 44 25 2c b9 29 0d  | .set_but(D%,.).|
00000cc0  06 0e 13 20 f2 73 65 74  5f 62 75 74 28 44 25 2c  |... .set_but(D%,|
00000cd0  a3 29 0d 06 18 0a 20 f2  77 61 69 74 0d 06 22 10  |.).... .wait..".|
00000ce0  20 f2 74 75 72 6e 28 44  25 2b 33 29 0d 06 2c 57  | .turn(D%+3)..,W|
00000cf0  20 f2 76 65 72 74 28 22  4e 6f 77 20 74 75 72 6e  | .vert("Now turn|
00000d00  20 74 68 65 20 22 2b 64  24 28 28 44 25 2b 33 29  | the "+d$((D%+3)|
00000d10  20 83 20 34 29 2b 22 64  69 61 6c 20 75 6e 74 69  | . 4)+"dial unti|
00000d20  6c 20 74 68 65 20 22 2b  64 24 28 38 29 2b 22 64  |l the "+d$(8)+"d|
00000d30  69 61 6c 20 70 6f 69 6e  74 73 20 74 6f 20 31 32  |ial points to 12|
00000d40  2e 22 29 0d 06 36 0a 20  f2 77 61 69 74 0d 06 40  |.")..6. .wait..@|
00000d50  1a 20 f2 73 65 74 5f 65  64 67 65 5f 62 75 74 74  |. .set_edge_butt|
00000d60  6f 6e 73 28 44 25 29 0d  06 4a 13 20 f2 73 65 74  |ons(D%)..J. .set|
00000d70  5f 62 75 74 28 44 25 2c  a3 29 0d 06 54 10 20 f2  |_but(D%,.)..T. .|
00000d80  74 75 72 6e 28 44 25 2b  33 29 0d 06 5e 11 20 f2  |turn(D%+3)..^. .|
00000d90  73 6f 6c 76 69 6e 67 28  44 25 29 0d 06 68 06 20  |solving(D%)..h. |
00000da0  e1 0d 06 72 1c 20 dd 20  f2 73 65 74 5f 65 64 67  |...r. . .set_edg|
00000db0  65 5f 62 75 74 74 6f 6e  73 28 42 25 29 0d 06 7c  |e_buttons(B%)..||
00000dc0  15 20 f2 73 65 74 5f 62  75 74 28 42 25 2b 31 2c  |. .set_but(B%+1,|
00000dd0  b9 29 0d 06 86 15 20 f2  73 65 74 5f 62 75 74 28  |.).... .set_but(|
00000de0  42 25 2b 32 2c b9 29 0d  06 90 15 20 f2 73 65 74  |B%+2,.).... .set|
00000df0  5f 62 75 74 28 42 25 2b  33 2c b9 29 0d 06 9a 06  |_but(B%+3,.)....|
00000e00  20 e1 0d 06 a4 0c 20 dd  20 f2 64 6f 6e 65 0d 06  | ..... . .done..|
00000e10  ae 30 20 f2 76 65 72 74  28 22 59 6f 75 20 68 61  |.0 .vert("You ha|
00000e20  76 65 20 6e 6f 77 20 73  6f 6c 76 65 64 20 52 75  |ve now solved Ru|
00000e30  62 69 6b 27 73 20 43 6c  6f 63 6b 21 22 29 0d 06  |bik's Clock!")..|
00000e40  b8 11 20 d4 20 31 2c 32  2c 31 30 30 2c 33 30 0d  |.. . 1,2,100,30.|
00000e50  06 c2 06 20 e1 0d 06 cc  11 20 dd 20 f2 74 75 72  |... ..... . .tur|
00000e60  6e 5f 6f 76 65 72 0d 06  d6 39 20 f2 76 65 72 74  |n_over...9 .vert|
00000e70  28 22 4e 6f 77 20 74 75  72 6e 20 74 68 65 20 70  |("Now turn the p|
00000e80  75 7a 7a 6c 65 20 6f 76  65 72 20 74 6f 20 74 68  |uzzle over to th|
00000e90  65 20 6f 74 68 65 72 20  73 69 64 65 2e 22 29 0d  |e other side.").|
00000ea0  06 e0 06 20 e1 0d 06 ea  0e 20 dd 20 f2 6f 6b 28  |... ..... . .ok(|
00000eb0  44 25 29 0d 06 f4 1c 20  ec 20 64 78 25 28 44 25  |D%).... . dx%(D%|
00000ec0  29 2d 36 34 2c 64 79 25  28 44 25 29 2b 31 36 0d  |)-64,dy%(D%)+16.|
00000ed0  06 fe 08 20 ef 20 35 0d  07 08 0d 20 f1 20 22 4f  |... . 5.... . "O|
00000ee0  4b 20 3f 22 0d 07 12 08  20 ef 20 34 0d 07 1c 06  |K ?".... . 4....|
00000ef0  20 e1 0d 07 26 13 20 dd  20 f2 73 6f 6c 76 69 6e  | ...&. . .solvin|
00000f00  67 28 44 25 29 0d 07 30  1d 20 ec 20 64 78 25 28  |g(D%)..0. . dx%(|
00000f10  44 25 29 2d 31 31 32 2c  64 79 25 28 44 25 29 2b  |D%)-112,dy%(D%)+|
00000f20  31 36 0d 07 3a 08 20 ef  20 35 0d 07 44 10 20 f1  |16..:. . 5..D. .|
00000f30  20 22 53 4f 4c 56 49 4e  47 22 0d 07 4e 08 20 ef  | "SOLVING"..N. .|
00000f40  20 34 0d 07 58 06 20 e1  0d 07 62 12 20 dd 20 f2  | 4..X. ...b. . .|
00000f50  73 6f 6c 76 65 64 28 44  25 29 0d 07 6c 1d 20 ec  |solved(D%)..l. .|
00000f60  20 64 78 25 28 44 25 29  2d 31 36 2c 64 79 25 28  | dx%(D%)-16,dy%(|
00000f70  44 25 29 2b 31 31 32 0d  07 76 27 20 ef 20 35 2c  |D%)+112..v' . 5,|
00000f80  32 32 34 2c 31 30 2c 38  2c 32 32 35 2c 31 30 2c  |224,10,8,225,10,|
00000f90  38 2c 32 32 35 2c 31 30  2c 38 2c 38 2c 38 0d 07  |8,225,10,8,8,8..|
00000fa0  80 0f 20 f1 20 22 53 4f  4c 56 45 44 22 0d 07 8a  |.. . "SOLVED"...|
00000fb0  08 20 ef 20 34 0d 07 94  06 20 e1 0d 07 9e 10 20  |. . 4.... ..... |
00000fc0  dd 20 f2 74 75 72 6e 28  44 25 29 0d 07 a8 24 20  |. .turn(D%)...$ |
00000fd0  ec 20 64 78 25 28 44 25  20 83 20 34 29 2d 36 34  |. dx%(D% . 4)-64|
00000fe0  2c 64 79 25 28 44 25 20  83 20 34 29 2d 35 30 0d  |,dy%(D% . 4)-50.|
00000ff0  07 b2 08 20 ef 20 35 0d  07 bc 0d 20 f1 20 22 54  |... . 5.... . "T|
00001000  55 52 4e 22 0d 07 c6 08  20 ef 20 34 0d 07 d0 06  |URN".... . 4....|
00001010  20 e1 0d 07 da 17 20 dd  20 f2 73 65 74 5f 62 75  | ..... . .set_bu|
00001020  74 28 42 25 2c 75 70 25  29 0d 07 e4 24 20 ec 20  |t(B%,up%)...$ . |
00001030  62 78 25 28 42 25 20 83  20 34 29 2d 36 34 2c 62  |bx%(B% . 4)-64,b|
00001040  79 25 28 42 25 20 83 20  34 29 2b 31 36 0d 07 ee  |y%(B% . 4)+16...|
00001050  08 20 ef 20 35 0d 07 f8  1e 20 e7 20 75 70 25 20  |. . 5.... . up% |
00001060  f1 20 22 20 55 50 20 22  20 8b 20 f1 20 22 44 4f  |. " UP " . . "DO|
00001070  57 4e 22 0d 08 02 08 20  ef 20 34 0d 08 0c 06 20  |WN".... . 4.... |
00001080  e1 0d 08 16 10 20 dd 20  f2 76 65 72 74 28 54 24  |..... . .vert(T$|
00001090  29 0d 08 20 11 20 50 25  3d a7 54 24 2c 20 22 20  |).. . P%=.T$, " |
000010a0  22 29 0d 08 2a 06 20 f5  0d 08 34 11 20 f1 20 c0  |")..*. ...4. . .|
000010b0  54 24 2c 20 50 25 2d 31  29 0d 08 3e 18 20 54 24  |T$, P%-1)..>. T$|
000010c0  3d c2 54 24 2c 20 a9 28  54 24 29 20 2d 20 50 25  |=.T$, .(T$) - P%|
000010d0  29 0d 08 48 11 20 50 25  3d a7 54 24 2c 20 22 20  |)..H. P%=.T$, " |
000010e0  22 29 0d 08 52 0b 20 fd  20 50 25 3d 30 0d 08 5c  |")..R. . P%=0..\|
000010f0  09 20 f1 20 54 24 0d 08  66 06 20 e1 0d 08 70 16  |. . T$..f. ...p.|
00001100  20 dd 20 f2 63 69 72 63  28 58 25 2c 59 25 2c 52  | . .circ(X%,Y%,R|
00001110  25 29 0d 08 7a 16 20 e3  20 53 25 3d 2d 52 25 20  |%)..z. . S%=-R% |
00001120  b8 20 52 25 20 88 20 34  0d 08 84 16 20 5a 25 3d  |. R% . 4.... Z%=|
00001130  b6 28 52 25 2a 52 25 2d  53 25 2a 53 25 29 0d 08  |.(R%*R%-S%*S%)..|
00001140  8e 12 20 ec 20 58 25 2b  53 25 2c 59 25 2b 5a 25  |.. . X%+S%,Y%+Z%|
00001150  0d 08 98 12 20 df 20 58  25 2b 53 25 2c 59 25 2d  |.... . X%+S%,Y%-|
00001160  5a 25 0d 08 a2 06 20 ed  0d 08 ac 06 20 e1 0d 08  |Z%.... ..... ...|
00001170  b6 0c 20 dd 20 f2 77 61  69 74 0d 08 c0 06 20 f1  |.. . .wait.... .|
00001180  0d 08 ca 20 20 f2 76 65  72 74 28 22 41 6e 79 20  |...  .vert("Any |
00001190  6b 65 79 20 74 6f 20 63  6f 6e 74 2e 2e 2e 22 29  |key to cont...")|
000011a0  0d 08 d4 10 20 d4 20 31  2c 31 2c 31 35 30 2c 31  |.... . 1,1,150,1|
000011b0  0d 08 de 0d 20 2a 46 58  20 32 31 20 30 0d 08 e8  |.... *FX 21 0...|
000011c0  09 20 47 25 3d a5 0d 08  f2 06 20 db 0d 08 fc 06  |. G%=..... .....|
000011d0  20 e1 0d 09 06 14 20 dd  20 a4 61 73 6b 5f 64 69  | ..... . .ask_di|
000011e0  61 6c 28 44 25 29 0d 09  10 0d 20 2a 46 58 20 32  |al(D%).... *FX 2|
000011f0  31 20 30 0d 09 1a 0b 20  41 25 3d 31 35 32 0d 09  |1 0.... A%=152..|
00001200  24 09 20 58 25 3d 30 0d  09 2e 2a 20 f2 76 65 72  |$. X%=0...* .ver|
00001210  74 28 22 49 73 20 74 68  65 20 22 2b 64 24 28 44  |t("Is the "+d$(D|
00001220  25 29 2b 22 64 69 61 6c  20 61 74 20 31 32 3f 22  |%)+"dial at 12?"|
00001230  29 0d 09 38 10 20 d4 20  31 2c 31 2c 32 35 30 2c  |)..8. . 1,1,250,|
00001240  31 0d 09 42 06 20 f5 0d  09 4c 06 20 f5 0d 09 56  |1..B. ...L. ...V|
00001250  0c 20 f2 6f 6b 28 44 25  29 0d 09 60 0b 20 f2 64  |. .ok(D%)..`. .d|
00001260  65 6c 61 79 0d 09 6a 0c  20 f2 6f 6b 28 44 25 29  |elay..j. .ok(D%)|
00001270  0d 09 74 0b 20 f2 64 65  6c 61 79 0d 09 7e 1f 20  |..t. .delay..~. |
00001280  fd 20 28 ba 28 26 46 46  46 34 29 20 80 20 26 30  |. (.(&FFF4) . &0|
00001290  31 30 30 30 30 30 30 29  3d 30 0d 09 88 09 20 47  |1000000)=0.... G|
000012a0  24 3d be 0d 09 92 17 20  fd 20 a7 22 59 79 4e 6e  |$=..... . ."YyNn|
000012b0  22 2c 47 24 29 20 3c 3e  20 30 0d 09 9c 06 20 db  |",G$) <> 0.... .|
000012c0  0d 09 a6 1c 20 e7 20 a7  22 59 79 22 2c 47 24 29  |.... . ."Yy",G$)|
000012d0  3d 30 20 8c 20 3d b9 20  8b 20 3d a3 0d 09 b0 0d  |=0 . =. . =.....|
000012e0  20 dd 20 f2 64 65 6c 61  79 0d 09 ba 09 20 4e 25  | . .delay.... N%|
000012f0  3d 91 0d 09 c4 10 20 f5  20 fd 20 91 2d 4e 25 3e  |=..... . . .-N%>|
00001300  31 30 0d 09 ce 06 20 e1  0d ff                    |10.... ...|
0000130a
17-02-89/Clock.m0
17-02-89/Clock.m1
17-02-89/Clock.m2
17-02-89/Clock.m4
17-02-89/Clock.m5