GitHubLearning and foundations
Tic-Tac-Toe in Bash
A terminal game exercise using arrays, board state, player symbols, and occupancy checks.
THE PROBLEM
What it sets out
to solve.
Practice state changes and control flow with a three-by-three game board.
THE APPROACH
How it comes
together.
A Bash script represents board cells, displays the board, updates positions, and demonstrates row/column and occupied-cell checks.
UNDER THE HOOD
Follow the workflow.
Trace the components.
Select a node for its role in the system.
Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DTic-Tac-Toe in Bash
Bash 4+Associative arrays
Trace connections 3 relationships
- Player input→Position checks
- Position checks→Board state
- Board state→Terminal display
Select a component to see how it fits into the system.
CAPABILITIES
What’s inside.
- 01
Three-by-three board representation
- 02
Player symbols and display functions
- 03
Cell updates and occupied-position checks