game/
├── main.py # Entry point - run this to start the game
├── tic_tac_toe.py # Original monolithic version (deprecated)
├── game/ # Game logic layer
│ ├── __init__.py
│ ├── board.py # Board state and win detection logic
│ ├── controller.py # Main game controller coordinating components
│ └── constants.py # All configuration values and constants
└── ui/ # User interface layer
├── __init__.py
├── animations.py # Animation system (X, O, winning line, bounce)
├── canvas.py # Canvas setup and grid drawing
└── components.py # UI components (buttons, text displays)