Connect Four is a two-player strategy game in which players take turns dropping colored discs from the top into a grid. The goal is to get four of your discs in a row (horizontally, vertically, or diagonally) before your opponent does.
source image: https://www.101computing.net/connect4-challenge/
This README.md
file provides a brief description of the Connect4 game, as well as instructions for installing the required packages, running the game from the command line, playing against an AI opponent, and starting the web API.
- Python 3.6 or later
To install the required packages, run:
pip install -r requirements.txt
To start a game run game.py
python game.py
You will be able to choose different modes:
- '0' for computer against computer
- '1' for 1 human player against computer
- '2' for 2 humans against each other
Then the board is displayed in the terminal.
A computer agent using the minimax algorithm to choose the best action.
A computer agent using q-learning apporach to choose the best action.