This is the starter code for the Minimax workshop. The second of a three part series focusing on traditional AI techniques. This session will focus on adverserial search and we'll implement the minimax algorithm to play connect 4 !
To successfully minimax you will need to follow the instructions for the following MinimaxPlayer class methods in agent.py:
- minimax()
- min_value()
- max_value()
- minimax_search()
-
Make sure you have Python 3.6 installed.
-
Clone the repository
git clone https://github.com/SchoolofAI-Vancouver/Connect4-Minimax.git
-
Use Conda to create a new environment and install dependencies.
Click Here if you need a detail guide on using conda.- Linux or Mac:
conda create --name connect4 python=3.6 source activate connect4 conda install numpy conda install matplotlib conda install jupyter notebook
- Windows:
conda create --name connect4 python=3.6 activate connect4 conda install numpy conda install matplotlib conda install jupyter notebook
Navigate to the directory and open Connect4.ipynb
jupyter notebook Connect4.ipynb