How neptune-glitch/tic-tac-toe-python works
This is a small terminal Tic Tac Toe game: the player enters a row and position, the game updates and displays the board, then the computer chooses a move. Win and draw checks end the loop. The README describes the computer’s win/block/fallback strategy; the excerpt shows its implementation. All runtime components live in one source file, so the graph separates responsibilities rather than modules.
Main entry points: tic_tac_toe_.py Game loop
Components 7
Terminal interaction
- Game loop
tic_tac_toe_.py - Board display
tic_tac_toe_.py
Board and rules
- Board state
tic_tac_toe_.py - Player move
tic_tac_toe_.py - Win check
tic_tac_toe_.py
Computer play
- Computer move
tic_tac_toe_.py
Other components
- Player
Connections 10
- Player → Game loop: enters moves
tic_tac_toe_.py - Game loop → Player move: calls
tic_tac_toe_.py - Game loop → Board display: calls
tic_tac_toe_.py - Game loop → Win check: checks result
tic_tac_toe_.py - Game loop → Computer move: calls
tic_tac_toe_.py - Board display → Board state: reads
tic_tac_toe_.py - Player move → Board state: updates
tic_tac_toe_.py - Player move → Board display: calls
tic_tac_toe_.py - Win check → Board state: reads
tic_tac_toe_.py - Computer move → Board state: updates
tic_tac_toe_.py