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++.
- Host: GitHub
- URL: https://github.com/devlyas/tic-tac-toe
- Owner: DevLyas
- License: mit
- Created: 2025-06-08T13:17:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-08T13:47:36.000Z (about 1 year ago)
- Last Synced: 2025-06-08T14:33:00.114Z (about 1 year ago)
- Topics: cpp, game, terminal
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```