This repository contains a Checkers game implementation with both a Text User Interface (TUI) and a Graphical User Interface (GUI). It also includes a chess bot that can suggest moves for the game.
To install the necessary dependencies, run the following command:
pip install -r requirements.txt
- Current implementation includes
- Board display
- Piece display
- Board size logic is implemented
- Changes
- Added functionality to request user input to create a board of size n*2+2
- Added AssertionErrors
To run the GUI, run the following command from the terminal:
python3 GUI.py
- Input the board size as requested into the terminal
- Enjoy the game
Going through the basics:
- This must be done through ipython3
- There are two colors, BLACK and RED
- To access the color BLACK you can type Piece.BLACK
- To access the color RED you can type Piece.RED
Creating a Player:
- Player1=Player(Piece.RED)
- Player2=Player(Piece.BLACK)
Creating a Board:
- Board=Board(n) where n is how many rows of pieces you want the board to have.
You must have numpy installed to run the Game Logic. To do run the following:
- pip install numpy
To play or test the Game manually:
- Create your players (player1 and player2) and Board
- Create the game with your players and Board Two Options to play the game:
- Either play the Game like you would in the Connect4 example or play using Game.play()
- Create an instance of SmarterBot using parameters from the game that the bot should suggest moves for.
- Run the method
.suggest_move()
on this instance.
If you would like to contribute to this repository, please follow these guidelines:
- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes
- Submit a pull request with a clear description of your changes