Connect 4 Challenge

Connect 4 Challenge is a classic two-player board game built with HTML, CSS, and JavaScript. The goal is to connect four of your pieces either horizontally, vertically, or diagonally while preventing your opponent from doing the same.

Screenshot 2024-09-19 195112

Game Features

  • Two-player mode: Take turns to play as Player 1 and Player 2.
  • Randomized start: Randomly selects the player who starts the game.
  • Win detection: Automatically detects when a player connects four pieces.
  • Responsive UI: Designed for a seamless experience across different screen sizes.
  • Start and restart options: Easy to start and restart the game with a click of a button.
  • Simple, intuitive controls: Click on a grid box to place your piece.

Technologies Used

  • HTML5: Structure and content of the game.
  • CSS3: Styling for a clean, responsive layout.
  • JavaScript: Core game logic and interactivity, including win detection and player turns.

Clone the repository

git clone https://github.com/payalsahu1303/Connect-4-Challenge.git