text
stringlengths
0
834k
if /i %line7% equ 30 (goto owin)
set /a line8= %o3% + %o6% + %o9%
if /i %line8% equ 300 (goto owin)
::~ This section of code adds up all of the possible winning combinations on the %o-% grid i.e. each row, column and diagional, to check if the player has got three Os in a row. If so 'goto's the owin section.
set go=1xgame
set guess=
set /a turns= %turns% + 1
goto 1display
::~ Sets the go to the computer's and adds one to the number of turns taken
::~ 'Goto's the display.