How demoner21/tictactoe works
This repository contains two independent Tic-Tac-Toe implementations: a terminal game and a Tkinter GUI. In both, a player enters a move, the game updates its board, checks for a win or tie, and reports the result. The terminal version prompts and prints; the GUI version uses button callbacks and status labels. Source excerpts show the key calls within each implementation; no README documents additional capabilities.
Main entry points: tictac.py Game loop · tictoe.py GUI game
Components 12
Terminal game
- Game loop
tictac.py - Move input
tictac.py - Board output
tictac.py - Win check
tictac.py
Tkinter game
- GUI game
tictoe.py - Board buttons
tictoe.py - Win check
tictoe.py - Status display
tictoe.py
Other components
- Player
- Terminal
- Player
- Tkinter
Connections 12
- Player → Move input: enters move
tictac.py - Game loop → Move input: requests moves
tictac.py - Move input → Game loop: updates board
tictac.py - Game loop → Board output: prints board
tictac.py - Game loop → Win check: checks win
tictac.py - Game loop → Terminal: prints prompts
tictac.py - Player → Board buttons: clicks cell
tictoe.py - Board buttons → GUI game: calls move
tictoe.py - GUI game → Win check: checks win
tictoe.py - GUI game → Status display: updates status
tictoe.py - GUI game → Board buttons: updates cells
tictoe.py - GUI game → Tkinter: creates widgets
tictoe.py