Skip to content

MAACJR032/Super_TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Tic-Tac-Toe

Super tic-tac-toe is a board game composed of nine tic-tac-toe boards arranged in a 3 × 3 grid.
Players take turns playing on the smaller tic-tac-toe boards until one of them wins on the larger board.

Rules

Just like in regular tic-tac-toe, the two players (X and O) take turns, starting with X.
The game starts with X playing wherever they want in any of the 81 empty spots.
Next the opponent plays, however they are forced to play in the small board indicated by the relative location of the previous move.
For example, if X plays in the top right square of a small (3 × 3) board,
then O has to play in the small board located at the top right of the larger board.
Playing any of the available spots decides in which small board the next player plays.



If a move is played so that it is to win a small board by the rules of normal tic-tac-toe,
then the entire small board is marked as won by the player in the larger board.
Once a small board is won by a player or it is filled completely, no more moves may be played in that board.
If a player is sent to such a board, then that player may play in any other board.
Game play ends when either a player wins the larger board or there are no legal moves remaining,
in which case the game is a draw.

Compiling

Requirements:

  • g++ version 7.3.0 or newer

Windows:

  • Install MinGW with g++ version 7.3.0 or newer.
  • Download SFML (version 2.5.1) from https://www.sfml-dev.org/.
  • After downloading SFML, create a folder named SFML in the root directory of your project.
  • Copy the include and lib folders from the downloaded SFML folder into the SFML folder you just created.
  • Use mingw32-make for building the project.
  • After building, copy the .dll files from the SFML bin folder (from the SFML download) into your project's bin folder.

Linux:

  • Ensure g++ version 7.3.0 or newer is installed.
  • Install the SFML library by running the following command:
    sudo apt-get install libsfml-dev
  • Use make for building the project

About

A Super Tic-Tac-Toe game made in C++ with SFML

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •