TI-59 3-D Tic Tac Toe Game
Back to main page Email me at: Gene!
This program first appeared in the V5N4P30 issue of TI PPC Notes by Robert and Richard Snow (TI PPC Notes copies are still available in limited quantities from former editor Palmer Hanson-email me for his snail mail address). Printer is optional, but helpful.
Instructions: 1) Initialize by pressing E.
2) To print the 3-D playing board, press D. This board may be printed at anytime during the game without disturbing the game itself. If printed once the game has started, your pieces are printed as O's and the calculator's as X's.
3) If you want the calculator to move first, enter a zero and press A or R/S.
4) To make a move yourself, enter a number between 1 and 27 and press A or R/S.
5) The calculator returns its counter move in the display. If that number is flashing, the machine has won.
6) A flashing display of 99999999 indicates an illegal move.

Note: Squares 1-9 are the top grid, squares 10-18 are the middle grid and squares 19-27 are the bottom grid.

-------------
| 1 | 2 | 3 |
-------------
| 4 | 5 | 6 |
-------------
| 7 | 8 | 9 |
-------------

-------------
|10 |11 |12 |
-------------
|13 |14 |15 |
-------------
|16 |17 |18 |
-------------

-------------
|19 |20 |21 |
-------------
|22 |23 |24 |
-------------
|25 |26 |27 |
-------------
Program Listing. Most instructions are self-explanatory. A couple need special attention.

Steps 393, 394 and 395 cannot be directly keyed in. Key in DSZ 00 A, to put the keycodes 97 00 11 into program memory. Then go back and delete the 00. Insert two steps between the 97 and 11 and key in STO 36. You will then have 97 42 36 11 as keycodes. Go back and delete the 42. Then delete the 11. You will now have 97 36. Now key in after the 36 keycode STO 51. You will then have 97 36 42 51. Then delete the 42 to have the three steps listed correctly.

Steps 441 and 442 should be keyed in a similar fashion. Key in DSZ 01 0381 to have these keycodes in memory: 97 01 03 81. Now go back and delete the 01 after the 97 keycode. Now insert two steps after the 97. Key in STO 35. Now go back and delete the 42 keycode to have the 97 35 03 81 as the keycodes for 441 - 444.

Line  Keycode  Instruction
00      92       RTN
01      61       GTO
02      11       A
03      76       LBL
04      19       D'
05      42       STO
06      30       30
07      61       GTO
08      00       00
09      18       18
10      43       RCL
11      31       31
12      44       SUM
13      28       28
14      44       SUM
15      29       29
16      44       SUM
17      30       30
18      73       RCL IND
19      28       28
20      85       +
21      73       RCL IND
22      29       29
23      85       +
24      73       RCL IND
25      30       30
26      95       =
27      42       STO
28      34       34
29      32       X <> T
30      87       IFF
31      40       IND
32      34       34
33      03       03
34      24       24
35      02       2
36      67       EQ
37      03       03
38      01       01
39      08       8
40      67       EQ
41      02       02
42      99       99
43      04       4
44      22       INV
45      77       GE
46      03       03
47      24       24
48      67       EQ
49      03       03
50      03       03
51      01       1
52      67       EQ
53      03       03
54      05       05
55      00       0
56      67       EQ
57      03       03
58      07       07
59      03       3
60      05       5
61      01       1
62      03       3
63      03       3
64      07       7
65      03       3
66      06       6
67      07       7
68      03       3
69      14       D
70      00       0
71      76       LBL
72      15       E
73      47       CMS
74      81       RST
75      76       LBL
76      11       A
77      42       STO
78      32       32
79      25       CLR
80      29       CP
81      73       RCL IND
82      32       32
83      67       EQ
84      00       00
85      89       89
86      00       0
87      35       1/X
88      81       RST
89      01       1
90      04       4
91      42       STO
92      28       28
93      02       2
94      07       7
95      42       STO
96      29       29
97      01       1
98      42       STO
99      31       31
100     72       STO IND
101     32       32
102     42       STO
103     00       00
104     19       D'
105     03       3
106     42       STO
107     00       00
108     09       9
109     42       STO
110     31       31
111     01       1
112     42       STO
113     29       29
114     05       5
115     42       STO
116     28       28
117     19       D'
118     03       3
119     42       STO
120     00       00
121     42       STO
122     29       29
123     05       5
124     42       STO
125     28       28
126     07       7
127     19       D'
128     01       1
129     04       4
130     42       STO
131     28       28
132     09       9
133     42       STO
134     29       29
135     01       1
136     09       9
137     19       D'
138     03       3
139     42       STO
140     29       29
141     02       2
142     05       5
143     19       D'
144     02       2
145     01       1
146     42       STO
147     29       29
148     07       7
149     19       D'
150     03       3
151     42       STO
152     00       00
153     42       STO
154     31       31
155     01       1
156     42       STO
157     28       28
158     01       1
159     01       1
160     19       D'
161     03       3
162     42       STO
163     00       00
164     42       STO
165     28       28
166     01       1
167     09       9
168     42       STO
169     29       29
170     01       1
171     01       1
172     19       D'
173     03       3
174     42       STO
175     00       00
176     01       1
177     42       STO
178     28       28
179     42       STO
180     31       31
181     01       1
182     03       3
183     19       D'
184     03       3
185     42       STO
186     00       00
187     07       7
188     42       STO
189     28       28
190     01       1
191     09       9
192     42       STO
193     29       29
194     01       1
195     03       3
196     19       D'
197     09       9
198     42       STO
199     00       00
200     01       1
201     42       STO
202     28       28
203     01       1
204     09       9
205     42       STO
206     29       29
207     01       1
208     00       0
209     19       D'
210     09       9
211     42       STO
212     00       00
213     01       1
214     42       STO
215     28       28
216     03       3
217     42       STO
218     29       29
219     42       STO
220     31       31
221     02       2
222     19       D'
223     03       3
224     42       STO
225     00       00
226     01       1
227     42       STO
228     28       28
229     42       STO
230     31       31
231     07       7
232     42       STO
233     29       29
234     04       4
235     19       D'
236     03       3
237     42       STO
238     00       00
239     01       1
240     00       0
241     42       STO
242     28       28
243     01       1
244     06       6
245     42       STO
246     29       29
247     01       1
248     03       3
249     19       D'
250     03       3
251     42       STO
252     00       00
253     01       1
254     09       9
255     42       STO
256     28       28
257     02       2
258     05       5
259     42       STO
260     29       29
261     02       2
262     02       2
263     19       D'
264     87       IFF
265     00       00
266     02       02
267     77       77
268     01       1
269     05       5
270     01       1
271     03       3
272     03       3
273     07       7
274     14       D
275     00       0
276     15       E
277     04       4
278     72       STO IND
279     32       32
280     87       IFF
281     08       08
282     02       02
283     87       87
284     43       RCL
285     32       32
286     81       RST
287     02       2
288     04       4
289     00       0
290     00       0
291     04       4
292     03       3
293     02       2
294     04       4
295     03       3
296     01       1
297     14       D
298     15       E
299     86       STF
300     08       08
301     86       STF
302     02       02
303     86       STF
304     04       04
305     86       STF
306     01       01
307     86       STF
308     00       00
309     29       CP
310     73       RCL IND
311     28       28
312     67       EQ
313     03       03
314     29       29
315     73       RCL IND
316     29       29
317     67       EQ
318     03       03
319     34       34
320     43       RCL
321     30       30
322     42       STO
323     32       32
324     97       DSZ
325     00       00
326     00       00
327     10       10
328     92       RTN
329     43       RCL
330     28       28
331     61       GTO
332     03       03
333     22       22
334     43       RCL
335     29       29
336     61       GTO
337     03       03
338     22       22
339     06       6
340     02       2
341     00       0
342     00       0
343     00       0
344     00       0
345     85       +
346     69       OP
347     20       20
348     73       RCL IND
349     00       00
350     77       GE
351     03       03
352     54       54
353     92       RTN
354     05       5
355     00       0
356     92       RTN
357     76       LBL
358     14       D
359     93       .
360     69       OP
361     03       03
362     00       0
363     42       STO
364     00       00
365     03       3
366     42       STO
367     35       35
368     32       X <> T
369     01       1
370     42       STO
371     36       36
372     71       SBR
373     04       04
374     08       08
375     71       SBR
376     04       04
377     08       08
378     61       GTO
379     04       04
380     08       08
381     02       2
382     00       0
383     04       4
384     07       7
385     02       2
386     00       0
387     02       2
388     00       0
389     00       0
390     00       0
391     84       OP IND
392     36       36
393     97       DSZ
394     36       36
395     51       BST
396     02       2
397     00       0
398     02       2
399     00       0
400     04       4
401     07       7
402     02       2
403     00       0
404     02       2
405     00       0
406     84       OP IND
407     36       36
408     69       OP
409     05       05
410     69       OP
411     00       00
412     71       SBR
413     03       03
414     46       46
415     52       EE
416     08       8
417     22       INV
418     52       EE
419     85       +
420     71       SBR
421     03       03
422     39       39
423     95       =
424     84       OP IND
425     36       36
426     01       1
427     44       SUM
428     36       36
429     71       SBR
430     03       03
431     39       39
432     95       =
433     58       FIX
434     02       02
435     84       OP IND
436     36       36
437     22       INV
438     58       FIX
439     69       OP
440     05       05
441     97       DSZ
442     35       35
443     03       03
444     81       81
445     03       3
446     42       STO
447     35       35
448     69       OP
449     00       00
450     43       RCL
451     32       32
452     92       RTN
453     61       GTO
454     11       A
That's it! Enjoy!