Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

DarthMooMancer/tic_tac_toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

A simple terminal-based Tic-Tac-Toe game.

Build

To build the game, run the following commands:

cmake -S . -B build && cmake --build build

Run

To run the game, execute the following command from the build directory:

./build/tic_tac_toe

How to Play

  • Use the numbers 1-9 on your keyboard to select a cell on the board.
  • The numbers correspond to the cells as follows:
1 | 2 | 3
--+---+--
4 | 5 | 6
--+---+--
7 | 8 | 9
  • Press 'q' to quit the game at any time.

About

  • This is a simple implementation of the classic Tic-Tac-Toe game.
  • It is written in C++23.
  • It uses the ncurses library to render the game in the terminal.

About

Tic Tac Toe in the terminal - Learning c++ in the process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published