8000 GitHub - shrinil-thakkar/connect4: A modern implementation of the classic Connect 4 game
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shrinil-thakkar/connect4

Repository files navigation

Connect 4 Game

A modern implementation of the classic Connect 4 game built with HTML, CSS, and JavaScript.

Features

  • 6x6 game board
  • Smooth falling coin animations
  • Attractive and eye-friendly color scheme
  • Win detection in all directions (horizontal, vertical, diagonal)
  • Draw detection
  • Player turn indicators
  • Reset game functionality

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)

How to Play

  1. Open index.html in your web browser
  2. Players take turns clicking on columns to drop their pieces
  3. The first player to connect 4 pieces in a row (horizontally, vertically, or diagonally) wins
  4. Click the "New Game" button to reset the game

Project Structure

connect4/
├── index.html          # Main HTML file
├── styles.css          # CSS styles
├── game.js             # Game logic and UI
└── README.md           # Project documentation

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/connect4.git
  1. Open index.html in your web browser

License

This project is open source and available under the MIT License.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A modern implementation of the classic Connect 4 game

Resources

License

Releases

No releases published

Packages

No packages published
0