Skip to content

nnamann/TIC-TAC-TOE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

TIC-TAC-TOE

This tic-tac-toe game runs in terminal. The game has a player vs player mode and a player vs computer mode.

The computer vs player has three different difficulty modes: EASY, MODERATE & DIFFICULT (the main focus).

BRIEF WORKING

  • In EASY mode, the COMPUTER places the marking randomly

  • In DIFFICULT mode, the COMPUTER has few predefined moves, followed by the core algorithm which helps it for decision making. Thus making it impossible to defeat.

  • In MODERATE mode, the core algorithm, makes decision without any predefined moves, making the game random and playful.

Snippet from a match Screenshot 2025-02-16 at 5 52 58 PM

NOTE: If you run this code in windows do replace: system("clear"); command with: system("cls");
(this is used to clear the terminal)

Have fun playing the game and exploring the algorithm.
IMG_4331

About

This tic-tac-toe game runs in terminal. The COMPUTER does predictive analysis and decision making before making any move.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages