Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twist Tac Toe

Game Overview

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.

Features

  • 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

Installation

  1. Clone this repository https://github.com/javaldrnld/twistTacToe
  2. Navigate to the project directory: cd twistTacToe
  3. Install the required dependencies: pip install pygame numpy

How to Play:

  1. Run the main script.
  2. Choose a game mode from the selection screen.
  3. Click on the grid to make move.
  4. Press 'R' to restart the game at any time.

Technical Dependencies

  • Python 3.x
  • Pygame
  • NumPy

Project Structure

  • 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.

Compatibility

This game should run on any system with Python 3.x and the required dependencies installed.

License

MIT

Acknowledgements

Future Improvements

  • Add sound effects
  • Implement difficulty levels for AI
  • Create a score tracking system
  • Add animation for winning moves

Author

Ronald Javalde

About

This is a quiz for our course subject Software Design to showcase our skills in developing a game called "Tic-Tac-Toe" with a twist.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages