๐ฎ Connect Four Game Repository
Welcome to the Connect Four Game repository! Enjoy this fun, interactive project where the classic Connect Four game meets modern web technologies. Whether youโre a developer looking to learn or a casual player wanting a quick game, this project has something for everyone.

๐ Features:
๐ฒ Two-Player Mode: Challenge a friend in a battle of strategy and wit.
โจ Interactive Gameplay: Drop discs with a simple click and enjoy smooth animations as the game unfolds.
๐ง Win Detection: Automatic checks for horizontal, vertical, and diagonal victories, ensuring fair play.
๐ Project Highlights:
-
Game Logic Implementation: A robust JavaScript-powered backend ensures accurate gameplay with efficient win detection and draw recognition.
-
Dynamic UI: Eye-catching CSS styles and responsive design principles make the game visually appealing and functional on any device.
๐ ๏ธ Getting Started:
-
Clone the Repository:
git clone https://github.com/chedelino/connect4Game.git
-
Open the Project: Navigate to the directory and open
fichier.html
in your browser:cd connect4Game open fichier.html
-
Start Playing! Enjoy a quick game or explore the source code to see how everything works.
๐ Repository Structure:
connect4Game/
โโโ fichier.html # Main game interface
โโโ style.css # Styling for the game board and UI
โโโ fichier.js # Core game logic and interactivity
โโโ README.md # Project documentation (you are here!)
๐ก How to Play:
- Select a column to drop your disc by clicking on it.
- Players alternate turns, aiming to connect four discs in a row.
- The game announces the winner or a draw when the board is full.
- After the game ends, you will be asked if you want to continue:
- Yes: The game restarts.
- No: A report is displayed showing the total number of wins for each player.
๐ Future Enhancements:
- ๐ค AI Opponent: Play against a computer with varying difficulty levels.
- ๐ Online Multiplayer: Challenge friends across the globe.
- ๐ถ Sound Effects: Add immersive soundscapes to enhance gameplay.
๐ Enjoy Playing!
Whether you're here to play, learn, or contribute, we hope you have a fantastic experience. Feel free to reach out with questions, suggestions, or just to say hello!