Twist-Tac-Toe is a normal Tic-Tac-Toe but with a twist. The game is played on a 3x3 grid, every turn the board will rotate 90 degrees clockwise.
- Multiple game modes:
- Player vs Player
- Player vs AI (Easy)
- Player vs AI (Minimax Algorithm)
- Graphical user interface using Pygame
- Turn indicator
- Game restart functionality
- Clone this repository
https://github.com/javaldrnld/twistTacToe - Navigate to the project directory:
cd twistTacToe - Install the required dependencies:
pip install pygame numpy
- Run the main script.
- Choose a game mode from the selection screen.
- Click on the grid to make move.
- Press 'R' to restart the game at any time.
- Python 3.x
- Pygame
- NumPy
main.py: The main entry point of the game.src/:board.py: Handles the game board and its visual representation.game.py: Manages the game logic and state.ai.py: Implements the AI player with random and minimax.constants.py: Stores game constants and configurations.
This game should run on any system with Python 3.x and the required dependencies installed.
- Awesome Readme Templates
- Awesome README
- How to write a Good readme
- Pygame community
- Contributors to the NumPy project
- Minimax Algorithm
- Coding Spot
- Add sound effects
- Implement difficulty levels for AI
- Create a score tracking system
- Add animation for winning moves
Ronald Javalde