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.
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.
- Game has two modes : vs Computer and vs Friend.
- In vs Computer mode : There are 3 levels namely Easy, Medium, Hard Levels.
- In Hard Level : I have implemented MINIMAX ALGORITHM which returns the most optimal move given a certain game state.
- The game has predefined Score Criteria for each playable modes.
- 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").
- This game has a Local Database which stores the User Credentials pertaining to different accounts and their respective Play History in a seperate database.
- Users can view their stats of previously played matches corresponding to certain account.
--- User Authentication Portal Screen ---
Important
- The .exe file is completely safe to download. If Windows Firewall blocks, go to Advanced Settings and click on "Run Anyway".
- 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