Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 875 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 875 Bytes

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.