Skip to content

tmzh/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect4

An implementation of connect 4 game in Python with AI. The AI implementations includes:

  1. Random
  2. Minimax with alpha-beta pruning

Running interactive games

The interactive gameplay defaults to human vs Minimax AI player.

CLI mode

Run board.py to run the CLI form of the game.

python board.py

GUI mode

Run connect4.py to run the visual form of game. It is written using PyGame.

python connect4.py

References

Thanks to the following sources for idea and implementation

  1. https://github.com/KeithGalli/Connect4-Python
  2. https://codereview.stackexchange.com/a/234301

About

Connect4 game written in Python

Resources

Stars

Watchers

Forks

Packages

No packages published