Skip to content

This is a 3x3x3 tic tac toe using the minimax algorithm. It includes a graphical GUI to make it interesting.

Notifications You must be signed in to change notification settings

myselfpawanraj/3x3x3-Tic-Tac-Toe

Repository files navigation

3x3x3 TTT

This is a 3D tic-tac-toe using the minimax algorithm with alpha-beta pruning. It includes a GUI to make it enjoyable.

Run main.py to play it.

Rules:

  • The game is played on a grid that's 3 by 3 by 3 squares.
  • You are X, and your friend (or the computer in this case) is O. Players take turns putting their marks in empty squares.
  • The first player to get 3 of her marks in a row (up, down, across, or diagonally across the face or the cube) is the winner.
  • When all 27 squares are full, the game is over. The game ends in a tie if no player has 3 marks in a row.

Instructions:

  • Click an empty box to make your move
  • Right Click to restart a game when the game ends.
  • Hit SPACE to toggle between modes.

Tech Used:

  • Python to code the game
  • Minimax program is written in C++ to make it overall faster
  • Pygame for the GUI of the game
  • GIT for Version Control

Screenshot:

screenshot

Run in Gitpod:

You can also run 3x3x3 TTT in Gitpod, a free online dev environment for GitHub:

Open in Gitpod

About

This is a 3x3x3 tic tac toe using the minimax algorithm. It includes a graphical GUI to make it interesting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages