Skip to content

RobertGleison/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4 - An AI-Powered Game

This project implements the classic Connect 4 game with an optional Artificial Intelligence (AI) opponent. The objective remains the same: strategically place your colored discs to achieve a horizontal, vertical, or diagonal line of four pieces to win. This project offers an engaging way to hone your Connect 4 skills or challenge the AI.
AI algorithms: A*, Predictive A*, Alpha Beta Pruning and Monte Carlo Tree Search.

Installation

Prerequisites:

Installing Dependencies:

  1. Open your terminal or command prompt.
  2. Navigate to the project directory using the cd command.
  3. Run the following command to install required dependencies listed in requirements.txt:
pip install -r requirements.txt

Running the game

  1. Open your terminal or command prompt.
  2. Navigate to the project directory using the cd command.
  3. Run the following command to play the game.
python3 main.py

About

Project for IA grade

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages