Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 996 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 996 Bytes

Connect 4 board game solved using Artificial Intelligence

Solving connect 4 board game using alpha beta pruning search algorithm evaluated by minimax algorithm. This repository should also help you to understand the minimax algorithm with optimized search strategy alpha beta pruning. We implement the algorithm using python2 and tested on linux platform.

How to run

  • Linux/Windows/MacOS : Clone this repository and open terminal. change directory with command cd to clone repository. Then run command python Connect4_Game.py
  • You can use default board grids or input your configuration.
  • Game is started between bot and user with first move taken by the bot.
  • Next, enter the number where you would like to place your 0 (Bot uses x sign).

Requirements

  • python2
  • numpy

To-Do

  • Making code compatible for python3

Authors