Time spent on project badge
Code License: MIT
Made for: Hack Club Stardance
Lines of Code: 3223

Tic-Tac-Cube

A C++ game like Tic-Tac-Toe, except played on a Rubik's cube, and players can choose to turn a side or rotate the cube instead of making a turn.

GitHub Repo

Features

  • All the features of regular tic-tac-toe
  • Turn the cube to rearrange the X's and O's
  • Rotate the cube to start fresh on a new board - unless the "new" board already have marks on it from previous rotations or turns
  • Local multiplayer mode to play with your friends (or yourself) on the same device
  • Singleplayer mode against a bot

How to play

  • Click the back button at the top left of the board anytime to return to the main menu.

Singleplayer

  • Click on the singleplayer button in the main menu.
  • A popup will show up on the top right telling you who you are: x or o
  • When it's your turn, make a move by clicking on the 3x3 board in the center, just like regular Tic-Tac-Toe, except....
  • You can click on one of the buttons on the side to rotate the board!
  • If you or the bot get a three-in-a-row on one single face of the board, the game ends. A popup will show up informing you about the victor, and you'll return to the main menu.
  • When it's not your turn, the bot will play. It can turn the board and make moves just like you can.
  • The bot is decently intelligent and will play to win and try to thwart your plans.

Multiplayer

  • Click on the multiplayer button in the main menu.
  • You can move however you want, and play however you want, by clicking on the 3x3 board or on one of the rotation buttons surrounding the board.
  • You can even play with a friend, hence "multiplayer"
  • If you get a three-in-a-row on one single face, the game ends, and you'll return to the main menu

Special Cases

  • Due to the nature of a cube that allows it to turn, there is a chance that you may win or lose the game when the three-in-a-row isn't visible on your screen.
Published 2 days ago
StatusReleased
PlatformsHTML5
AuthorEthanCubes
GenreStrategy
TagsBoard Game
Average sessionA few minutes
LanguagesEnglish
InputsMouse, Touchscreen
MultiplayerLocal multiplayer
Player count1 - 2
ContentNo generative AI was used

Leave a comment

Log in with itch.io to leave a comment.