Skip to content

Connect 4 is a classic two-player strategy game where players take turns dropping colored discs into a grid, aiming to align four of their discs in a row—horizontally, vertically, or diagonally—before their opponent. In the AI-enhanced version, one player competes against a computer opponent programmed to make intelligent, strategic moves.

Notifications You must be signed in to change notification settings

Skchlke/AI-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Connect 4 is a classic two-player strategy game where the objective is to be the first to get four of your colored discs in a row horizontally, vertically, or diagonally. Many AI systems have been developed to play Connect 4 at a superhuman level.

The key aspects of a Connect 4 AI system are: Minimax Algorithm: The Minimax algorithm is a decision-making algorithm used in adversarial games like Connect 4. It recursively evaluates moves by assuming the opponent will play to minimize the player's score, while the player will play to maximize their score.

Alpha-Beta Pruning: This optimization technique can be used in conjunction with Minimax to reduce the number of nodes that need to be evaluated in the game tree, making the search more efficient.

⭐Prerequisite:

  • Install python and it's basic libraries like Numpy, Pandas, sys.
  • Also install pygame library

Contributing: Contributions are welcome! If you'd like to improve the project, please fork the repository and submit a pull request.

About

Connect 4 is a classic two-player strategy game where players take turns dropping colored discs into a grid, aiming to align four of their discs in a row—horizontally, vertically, or diagonally—before their opponent. In the AI-enhanced version, one player competes against a computer opponent programmed to make intelligent, strategic moves.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages