Skip to content

Mxlan2711/TicTacToe

Repository files navigation

✖️⭕ Tic-Tac-Toe in C++

📌 Project Description

simple CLI-based Tic-Tac-Toe game written in C++. There are two versions:

  1. Two-Player Version – Players X and O take turns competing against each other.
  2. Basic AI Version – Play against a simple computer opponent.

In TicTacToe2Player.cpp, the two players alternate turns.
The game validates inputs, detects winners or draws, and displays the current board after each move.

TicTacToe2PlayerMatchTracking.cpp follows the same concept but plays three rounds to determine the overall winner.

This project is ideal for C++ beginners to practice working with:

  • Classes and objects
  • Inheritance and polymorphism
  • Input and output
  • Arrays
  • Game logic

⚙️ Compilation and Execution

Requirements

  • A C++ compiler (e.g. g++)
  • Terminal or command line interface

Compile

g++ -o TicTacToe2Player TicTacToe2Player.cpp

Execute

./TicTacToe2Player

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors