This C++ program implements the "Ultimate"
Tic-Tac-Toe game, a variation of the classic Tic-Tac-Toe on a larger grid. The game includes features such as switching between subgrids and displaying game statistics.
NEW :
UI is now updated !! with best text animations and a loading animation as well !NEW :
Documentation displayed and rules of the game explained before you play....
util.h
: Header file containing utility functions.textstyling.h
: Header file for text styling.console_utils.h
: Header file for console utility functions.
The Ultimate Tic-Tac-Toe game is an extended version of the classic Tic-Tac-Toe, played on a 9x9 grid of smaller Tic-Tac-Toe boards. Players take turns making moves within the smaller grids, and winning a smaller grid grants control of the corresponding larger grid. The goal is to win three smaller grids in a row, either horizontally, vertically, or diagonally.
- Players can enter their names at the beginning of the game.
- Player 1 is represented by 'X', and Player 2 is represented by 'O'.
- The game provides a
dynamic and colorful console display
. - The larger 9x9 grid is presented, along with statistics and player information.
- Players use
arrow keys
(Up, Down, Left, Right) to navigate within the grid. - The
'Tab'
key allows switching between smaller grids. - Pressing
'Enter'
places the player's symbol ('X' or 'O') in the selected cell.
- Players are constrained to move in the smaller grid indicated by the last move of the opponent.
- If a player wins a smaller grid, they force the opponent to move in the corresponding larger grid.
- The game checks for wins in smaller grids after each move.
- If a player wins three smaller grids in a row, they are declared the overall winner.
- If all smaller grids are filled, and there is no winner, the game ends in a draw.
- Pressing the
'Esc'
key prompts the player to confirm whether they want to exit the game.
- Messages are displayed when the game ends, indicating the winner or a draw.
- Enter names for Player 1 and Player 2.
- Use arrow keys to navigate and 'Enter' to make a move.
- 'Tab' allows switching between smaller grids. (only initially, -i.e- before making a move)...
- The game ends when a player wins, it's a draw, or the player chooses to exit.
-
Go To the
Releases section
,
CLICK https://github.com/Haysten-D-costa/Ultimate-Tic-Tac-Toe-Game-C-plus-plus/releases .... -
Scroll Down to the
Assets section
and download the Files Required.... -
Download https://github.com/Haysten-D-costa/Ultimate-Tic-Tac-Toe-Game-C-plus-plus/releases/download/v1.0.0/UltimateTTToe.exe
and run theUltimateTTToe.exe
file.... -
OR
Download https://github.com/Haysten-D-costa/Ultimate-Tic-Tac-Toe-Game-C-plus-plus/releases/download/v1.0.0/UltimateTTToe_Installer.zip
UltimateTTToe_Installer.zip
and extract and run theUltimateTTToe.exe
file....
To enable static linking :
//? TO COMPILE :
g++ -c console_utils.cpp -o console_utils.o
g++ -c UltimateTTToe.cpp -o UltimateTTToe.o
g++ -static-libgcc console_utils.o UltimateTTToe.o -o UltimateTTToe
//? TO RUN :
UltimateTTToe