Skip to content

FaresM7/Connect-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Connect 4 Game

Description

This project implements a Connect 4 game where players can choose to play against another human, against a random AI, or against a minimax AI. The game is implemented in Python and utilizes concepts such as object-oriented programming and algorithms like the minimax algorithm for the AI opponent.

Features

  • Game Modes: Choose between playing against another human (H), a random AI (A), or a minimax AI (I).
  • Interactive Console Interface: Players interact via the console, selecting columns to drop their pieces into the game board.
  • Winning Conditions: The game checks for winning conditions horizontally, vertically, and diagonally.
  • Input Validation: Ensures valid user inputs and handles errors gracefully.
  • Restart and Quit Options: Players can restart the game (R) or quit (Q) during gameplay.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages