Skip to content

Replica of Classic Connect 4 game with 2 player mode or play against advanced AI (implements minimax algorithm). Built using Python

Notifications You must be signed in to change notification settings

barclayd/Connect-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4

2 player and battle against advanced AI Connect 4 game built using Python

Demo

Connect 4 game play

Winning screen

Features

  • Replica of original game
  • 2 player mode or play against computer using AI
  • AI uses advanced algorithm (Minimax)

How to Run

To Run 2 player game

$ git clone https://github.com/barclayd/Connect-4.git
$ cd Connect-4
$ python connect_4_two_player.py

To run vs AI game

$ git clone https://github.com/barclayd/Connect-4.git
$ cd Connect-4
$ python connect_4_with_ai.py

Future Improvements

  • Settings screen with options to configure
    • Difficulty of AI (depth level of recursive algorithm)
    • Game mode - toggle between 2 player and vs Computer
    • Customisation of game in settings and allow for players to choose player colour pieces
    • Limits for time user can spend on making a move
  • Deploy as installable .exe/.dmg

About

Replica of Classic Connect 4 game with 2 player mode or play against advanced AI (implements minimax algorithm). Built using Python

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages