The Tkinter front end is a streamlined version of the same game that’s described in a separate tutorial. The PyScript front end lets you or your friends play the game in You’ll start by implementing the low-level details of the tic-tac-toe library, and then you'll use those to implement a higher-level game front end.

23m read timeFrom realpython.com
Post cover image
Table of contents
Enumerate the Players’ MarksRepresent the Square Grid of CellsTake a Snapshot of the Player’s MoveDetermine the Game StateIntroduce a Separate Validation LayerDiscard Incorrect Game StatesSimulate Moves by Producing New Game States

Sort: