Connect4 AI Agent to play against itself (AI vs AI), a human user (AI vs Human), or a random player (AI vs Random moves).
- Clone the repository
- Create a virtual environment:
python3 -m venv env
. - Activate the environment:
source env/bin/activate
. - Install the requirements:
pip install -r requirements.txt
. - Install tkinter on your system according to their documentation. For Linux:
sudo apt install python3-tk
. - Run the
Connect4.py
file:python3 ConnectFour.py {ai, random, human} {ai, random, human}
.- Pick one of the three options in {ai, random, human} for player1 then player2. No braces in the command.
- User interface will appear and click on Next Move button on the bottom to play.