A Python implementation of the Chinese Checkers board game with AI opponents
- Interactive GUI built with Pygame
- Support for 2-6 players
- AI opponent using Minimax algorithm
- Valid move checking and game state management
- Win condition detection
- Python 3.x
- Pygame
- NumPy
- Clone this repository:
git clone [repository-url]- Install the required dependencies:
pip install pygame numpy- Run the game:
python main.py- Game Rules:
- Each player starts with 10 marbles in their home triangle
- Players take turns moving their marbles
- A marble can move to an adjacent empty space or jump over other marbles
- The goal is to move all your marbles to the opposite triangle
- The first player to move all their marbles to the opposite triangle wins
main.py- Main game entry pointgui.py- Graphical user interface implementationgame_initialization.py- Board setup and initializationvalid_moves.py- Move validation logicgame_over.py- Win condition checkingminimax.py- AI opponent implementationmove.py- Move representationtest.py- Test cases