Skip to content

a tic tac toe in C++ and with minimax algorithm

Notifications You must be signed in to change notification settings

nima265/Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe

This is a simple implementation of the Tic Tac Toe game in C++, featuring player vs. player and player vs. AI modes. The AI uses the Minimax algorithm to make optimal moves.

image

Features

  • Player vs. Player: Play against a friend locally.
  • Player vs. AI: Challenge the computer AI using the Minimax algorithm.
  • Simple GUI: The game features a simple console-based graphical user interface.
  • Customizable Board: The board size is adjustable, allowing for different game variations.

Getting Started

Prerequisites

  • C++ compiler (supporting C++11 or later)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/tic-tac-toe.git
    
    
  2. Navigate to the project directory:

    cd tic-tac-toe
    
    
  3. Compile the source code:

    g++ -o tic-tac-toe main.cpp
    

Usage

  1. run Tic-Tac-Toe.cpp
  2. choose the mode of game
  3. enjoy =)

About

a tic tac toe in C++ and with minimax algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages