← Back to all work
GitHubLearning and foundations

Tic-Tac-Toe in Bash

A terminal game exercise using arrays, board state, player symbols, and occupancy checks.

STATUSHistorical learning project; current execution not revalidated in this review.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

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
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 3 connections
2D diagram
Trace connections 3 relationships
  1. Player inputPosition checks
  2. Position checksBoard state
  3. Board stateTerminal 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

Let’s build something useful.

Start a conversation ↗