Skip to content

dnhan1707/Tic-Tac-Toe_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game with AI

Welcome to the Tic Tac Toe game project with AI! Play against an AI opponent in a game of Tic Tac Toe.

How to Play

The game follows traditional Tic Tac Toe rules. The goal is to get three of your marks (X or O) in a row (horizontally, vertically, or diagonally) to win the game.

You will play as 'X', and the AI will play as 'O'.

Features

  • Player vs. AI Gameplay: Play against an AI opponent in a game of Tic Tac Toe.
  • AI Logic: The AI opponent uses the minimax algorithm to make intelligent moves.
  • Win and Draw Detection: The game identifies when a player wins or the game ends in a draw.

Installation and Usage

  1. Clone the repository to your local machine.
  2. Compile and run the code using a C++ compiler.
  3. Follow the on-screen instructions to play the game.

Technologies Used

  • C++

About

AI Tic-Tac-Toe game that never lose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published