Latest recipes by Russel Walker http://code.activestate.com/recipes/users/4186920/new/2013-06-18T10:52:27-07:00ActiveState Code RecipesTic Tac Toe console game (Python)
2013-06-18T10:52:27-07:00Russel Walkerhttp://code.activestate.com/recipes/users/4186920/http://code.activestate.com/recipes/578563-tic-tac-toe-console-game/
<p style="color: grey">
Python
recipe 578563
by <a href="/recipes/users/4186920/">Russel Walker</a>
(<a href="/recipes/tags/ai/">ai</a>, <a href="/recipes/tags/console/">console</a>, <a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/python/">python</a>).
Revision 2.
</p>
<p>Just a simple text based Tic Tac Toe game for human vs computer play. </p>
<p>The game and AI reside in the TTTGame class. AI uses brute force search for 'perfect play'.</p>
<p>The CLI class provides a text based console user interface.</p>