Anonymous user
Talk:Tic-tac-toe: Difference between revisions
m
→letting the human win (sometimes): added a comment about a 2x2 grid when played, will always force a win.
m (→"ancient" computer game: added more verbiage.) |
m (→letting the human win (sometimes): added a comment about a 2x2 grid when played, will always force a win.) |
||
Line 15:
== letting the human win (sometimes) ==
A note on the REXX solution: tic-tac-toe games, if played perfectly, will always end in a draw.
<br>(Except for the case for a '''2x2''' grid, a win is guaranteed for the player moving first.)
Since kids may be playing it (or adults with very short attention spans), I programmed a "hole" in the logic of the REXX program so that if a human player plays first (the default), they may win if a certain pair of moves are made. -- [[User:Gerard Schildberger|Gerard Schildberger]] 23:49, 10 December 2012 (UTC)
|