The game has two versions
- version 1: two human players play against each other
- version 2: human player plays against AI
The AI version is implemented with two versions
- version 1: AI chooses a random place to put its piece
- version 2: AI put its piece after applying MINIMAX algorithm
cd pygame_connect4
Scripts/activate
cd ..
cd Connect4
- To play the game with both versions and switch between them by pressing key C
py main.py
- To run connect 4 with 2-human players version ONLY
py 2_players_version.py
- To run connect 4 with AI version ONLY
py AI_vs_human_version.py
C to change the game mode from "player vs player" to "player vs AI" and vice versa
L to change AI_level from "minimax algorithm" to "random choice"
R to restart the game