Back to projects
csLearningLEARNING

Tic Tac Toe in C++

AI-Powered Command-Line Game

A command-line Tic Tac Toe game with object-oriented design featuring multiple game modes and intelligent AI strategies. Includes both random and strategic AI players that evaluate the board to win, block, or create opportunities.

GitHub
Case study snapshot
Role
Full-stack/data builder
Audience
users, reviewers, and hiring teams
Timeline
2024-06
Role
Full-stack/data builder
Audience
users, reviewers, and hiring teams
Date
2024-06
Problem

Why it mattered

Strategic AI evaluates 3 priorities: Win → Block → Opportunity

Solution

What shipped

A command-line Tic Tac Toe game with object-oriented design featuring multiple game modes and intelligent AI strategies. Includes both random and strategic AI players that evaluate the board to win, block, or create opportunities.

Impact

Proof signal

Strategic AI evaluates 3 priorities: Win → Block → Opportunity

< architecture />

System flow

Mode Selection -> Player Setup -> Game Loop -> AI Evaluation -> Win Detection.

Mode Selection
Player Setup
Game Loop
AI Evaluation
Win Detection
Visual architecture
01
Mode Selection
02
Player Setup
03
Game Loop
04
AI Evaluation
05
Win Detection
quality score

Honest maturity snapshot

Code Quality9/10
UI / UX7/10
Scalability7/10
Production Ready6/10
Before

A workflow or idea that needed clearer structure, validation, and delivery.

After

A working product surface with defined features, links, and a reviewable case study.

capabilities

Features

  • C++ integrated into the workflow.
  • OOP integrated into the workflow.
  • Game Logic integrated into the workflow.
  • AI Strategy integrated into the workflow.
  • Mode Selection stage documented in the delivery flow.
  • Player Setup stage documented in the delivery flow.
tradeoffs

Engineering challenges

  • Keeping the implementation clear enough to explain while still solving the core technical problem.
  • Choosing a scope that could be shipped, tested, and documented.
  • Turning technical work into proof a visitor can evaluate quickly.
proof

Results

  • Strategic AI evaluates 3 priorities: Win → Block → Opportunity
  • Documented the engineering path and important learnings.
  • Made source code or technical proof available for review.
reflection

What I learned

  • Tradeoff learned: Keeping the implementation clear enough to explain while still solving the core technical problem.
  • Proof learned: Strategic AI evaluates 3 priorities: Win → Block → Opportunity
  • Next iteration: Add richer screenshots or a narrated demo.
< stack />
C++OOPGame LogicAI StrategyCommand-line
< next iteration />

Future improvements

Add richer screenshots or a narrated demo.
Add before/after metrics and usage notes.
Package the project as a reusable template or deployable demo.