Talk:Tic-tac-toe: Difference between revisions

m
→‎Design issues: added comment about the REXX solution allowing humans to win. -- ~~~~
m (==ancient computer game=== added a comment from nostalgia lane. -- ~~~~)
m (→‎Design issues: added comment about the REXX solution allowing humans to win. -- ~~~~)
Line 10:
 
I decided to keep the game core separate from the players. Although this makes the code quite a bit longer, it also makes it clearer what the responsibilities are and how much knowledge they can have (they know their letter, they can see the board and the legal moves on it) and so it properly demonstrates that it ''is'' a game. Well, in my opinion anyway. –[[User:Dkf|Donal Fellows]] 09:33, 5 February 2011 (UTC)
 
 
... And I like your printout of the board. I really did do a minimal version of the game for Python. Maybe someone else will do a fancy version in Python for comparison? --[[User:Paddy3118|Paddy3118]] 12:45, 5 February 2011 (UTC)
 
A note on the REXX solution: this game, if played perfectly, will always end in a draw. Since kids may be playing it (or adults with very short attention spans), I programmed a "hole" in the logic 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)
 
==ancient computer game==