FANDOM


! This article is a stub. Please help the TI-BASIC Wiki by expanding it

This is a program for a two-player Tic-tac-toe game.

:ClrHome
:ClrDraw
:Line(3,8,3,-8
:Line(-3,8,-3,-8
:Line(8,3,-8,3
:Line(8,-3,-8,-3
:Lbl 1
:getKey→k
:If k=0:Then
:Goto 1
:ElseIf k=72:Then
:Text(12,20,"O
:ElseIf k=73:Then
:Text(12,46,"O
:ElseIf k=74:Then
:Text(12,70,"O
:ElseIf k=82:Then
:Text(30,20,"O
:ElseIf k=83:Then
:Text(30,46,"O
:ElseIf k=84:Then
:Text(30,70,"O
:ElseIf k=92:Then
:Text(48,20,"O
:ElseIf k=93:Then
:Text(48,46,"O
:ElseIf k=94:Then
:Text(48,70,"O
:End
:Goto 2
:Lbl 2
:getkey→k
:If k=0:Then
:Goto 2
:ElseIf k=21:Then
:Text(12,20,"X
:ElseIf k=22:Then
:Text(12,46,"X
:ElseIf k=23:Then
:Text(12,70,"X
:ElseIf k=31:Then
:Text(30,20,"X
:ElseIf k=32:Then
:Text(30,46,"X
:ElseIf k=33:Then
:Text(30,70,"X
:ElseIf k=41:Then
:Text(48,20,"X
:ElseIf k=42:Then
:Text(48,46,"X
:Else
:is k=43:Then
:Text(48,70,"X
:End
:Goto 1

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.