Skip to content

Kushanava-Ghosh/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

Tic-Tac-Toe is a classic two-player game played on a 3x3 grid. The players take turns marking a vacant spot on the grid with their respective symbols i.e either "X"(Crosses) or "O"(Noughts). The player who successfully places three of their marks in a horizontal, vertical, or diagonal row is the winner. If the grid is filled and no player has three in a row, the game is a draw.

Environment of the game

This game is built completely in C, C++ environment. I have used various libraries of C/C++ in this game such as iostream, unistd.h, conio.h, stdio.h, windows.h, cstdlib, ctime, cstring, climits, vector, map. This game is run on the console only.

Features of the game

  1. Game has two modes : vs Computer and vs Friend.
  2. In vs Computer mode : There are 3 levels namely Easy, Medium, Hard Levels.
  3. In Hard Level : I have implemented MINIMAX ALGORITHM which returns the most optimal move given a certain game state.
  4. The game has predefined Score Criteria for each playable modes.
  5. This game has a feature of an User-Authentication Portal which enables users to register and login through their accounts to play the game. They can even Manage their Accounts. (ONLY AVAILABLE IN "vs COMPUTER MODE").
  6. This game has a Local Database which stores the User Credentials pertaining to different accounts and their respective Play History in a seperate database.
  7. Users can view their stats of previously played matches corresponding to certain account.

Images of the Games

image --- Home Screen ---

image --- User Authentication Portal Screen ---

image --- Play Screen ---

image --- Score Analysis Screen ---

Tip

Do download the Tic-Tac-Toe_Adv.exe and give it a play 👍.

Important

Some Important Instructions

  1. The .exe file is completely safe to download. If Windows Firewall blocks, go to Advanced Settings and click on "Run Anyway".
  2. Before Playing Do enclose it in a folder because it involves some file handling operations which might hamper your other files if not enclosed inside a folder

Releases

No releases published

Packages

 
 
 

Languages