An open API service indexing awesome lists of open source software.

https://github.com/devlyas/tic-tac-toe

A simple terminal-based Tic Tac Toe game written in C++.
https://github.com/devlyas/tic-tac-toe

cpp game terminal

Last synced: 2 months ago
JSON representation

A simple terminal-based Tic Tac Toe game written in C++.

Awesome Lists containing this project

README

          

# Tic-Tac-Toe

A simple terminal-based Tic Tac Toe game written in C++, designed for two players with a stylized ASCII grid.

## Preview


.-----------.
| X | O | X |
:---+---+---:
| O | X | O |
:---+---+---:
| X | O | X |
'-----------'

## Features

- Two-player mode
- Input validation
- Stylized ASCII grid layout
- Clear win/draw detection

## How to Compile

Use a C++ compiler like `g++`:

```bash
g++ -o tic-tac-toe main.cpp
./tic-tac-toe
```