Skip to content

MonishSaravana/3DTicTacToe

Repository files navigation

3D Tic Tac Toe

A modern twist on the classic game, designed for 3 players in a 3D space.


Overview

This is a 3D version of Tic Tac Toe where three players compete to connect three consecutive symbols in any direction (horizontal, vertical, or diagonal). The game introduces strategic mechanics like takeovers, adding an extra layer of depth and competition.


Features

  • 🌟 3D Gameplay: Play across a 3x3x3 grid with multiple win conditions (horizontal, multilayer, corner-to-corner).
  • 👥 3-Player Mode: Designed for three players, each with unique strategies and resources.
  • ⚔️ Takeover Mechanic: Use takeovers to claim opponents' positions—but you can't use them to win directly!
  • 🎮 Interactive UI: Real-time feedback for moves, turn indicators, and takeover counters.
  • 🔴 Win Detection: Automatically detects and highlights winning patterns.

Rules

  1. Objective: Be the first player to connect 3 of your symbols consecutively in any direction (horizontal, vertical, diagonal, or corner-to-corner).
  2. Takeovers:
    • Player 1 starts with 2 takeovers; Players 2 and 3 start with 3 takeovers.
    • A takeover allows you to replace an opponent's symbol with your own.
    • Restriction: You cannot use a takeover to win the game.
  3. Turn Order: Players alternate turns placing symbols or using takeovers.
  4. Winning: The game ends when a player successfully connects 3 symbols.

How It Works

  • Hover & Place: Hover over a grid position and click to place your symbol.
  • Takeover Button: Enable the takeover button to use one of your takeovers on an occupied spot.
  • Game Feedback: Messages guide you through invalid moves, takeover restrictions, and winning conditions.
    image image

Technologies Used

  • Python: Core logic and game mechanics.
  • Ursina Engine: 3D rendering and interactivity.
  • Config Files: Manage game settings, grid positions, and rules.

Credits

Developed by Monish Saravana
Inspired by classic Tic Tac Toe with added 3D and multiplayer mechanics.


About

3D version of Tic Tac Toe, meant for 3 players, AKA 3D connect 3

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages