How ihac-er/tictactoe-bot works
Tic-Tac-Toe Bot is a small game application with CLI and Tkinter interfaces, a shared rules engine, and a Minimax bot. The main workflow is user input through the selected interface, game-state updates, and bot move selection when applicable. The source excerpts show the CLI and GUI call paths; the README documents interface selection and the GUI’s delegation. The graph omits unshown details beyond those sources.
Main entry points: TicTacToeGUI.py Tkinter GUI · main.py CLI game · bot.py Bot moves · TicTacToe.py Game engine
Components 8
Entry and interfaces
- Entry point
main.py - CLI game
main.py - Tkinter GUI
TicTacToeGUI.py
Game rules
- Game engine
TicTacToe.py
Bot strategy
- Bot moves
bot.py - Minimax search
bot.py
Other components
- Player
- Tkinter
Connections 13
- Player → Entry point: starts game
README.md - Entry point → CLI game: selects CLI
main.py - Entry point → Tkinter GUI: launches GUI
main.py - Player → CLI game: enters moves
main.py - Player → Tkinter GUI: clicks cells
TicTacToeGUI.py - Tkinter GUI → Tkinter: uses toolkit
TicTacToeGUI.py - CLI game → Game engine: plays moves
main.py - CLI game → Bot moves: requests move
main.py - Tkinter GUI → Game engine: plays moves
TicTacToeGUI.py - Tkinter GUI → Bot moves: requests move
TicTacToeGUI.py - CLI game → Bot moves: syncs board
main.py - Tkinter GUI → Bot moves: syncs board
TicTacToeGUI.py - Bot moves → Minimax search: evaluates moves
bot.py