How annmascrene/tic-tac-toe works
This repository contains a small, two-player Tic-Tac-Toe game implemented as a Python console program. Its principal workflow is: initialize a board, display it, prompt the active player for a valid move, update the board, then check for a win or draw before continuing or ending. The sampled Python source supports these runtime relationships; the tree also lists index.html, but no contents were provided, so its role is unclear and it is omitted.
Main entry points: tictactoe.py Game loop
Components 9
Other components
- Human player
- Game loop
tictactoe.py - Board state
tictactoe.py - Create board
tictactoe.py - Display board
tictactoe.py - Validate move
tictactoe.py - Check winner
tictactoe.py - Check draw
tictactoe.py - Console
Connections 15
- Game loop → Create board: calls
- Create board → Board state: creates
- Game loop → Display board: calls
- Display board → Board state: reads
- Display board → Console: prints
- Game loop → Validate move: calls
- Validate move → Board state: checks
- Validate move → Console: prompts
- Human player → Validate move: enters move
- Game loop → Board state: updates
- Game loop → Check winner: calls
- Check winner → Board state: checks
- Game loop → Check draw: calls
- Check draw → Board state: checks
- Game loop → Console: prints result