Skip to content

Connect4 AI Agent to play against itself (AI vs AI), a human user (AI vs Human), or a random player (AI vs Random moves).

License

Notifications You must be signed in to change notification settings

hamorrar/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

connect4

Connect4 AI Agent to play against itself (AI vs AI), a human user (AI vs Human), or a random player (AI vs Random moves).

To download and play:

  1. Clone the repository
  2. Create a virtual environment: python3 -m venv env.
  3. Activate the environment: source env/bin/activate.
  4. Install the requirements: pip install -r requirements.txt.
  5. Install tkinter on your system according to their documentation. For Linux: sudo apt install python3-tk.
  6. 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.
  7. User interface will appear and click on Next Move button on the bottom to play.

About

Connect4 AI Agent to play against itself (AI vs AI), a human user (AI vs Human), or a random player (AI vs Random moves).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages