Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 2.6 KB

README.md

File metadata and controls

85 lines (53 loc) · 2.6 KB

🎮 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.

image

🌟 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:

  1. Game Logic Implementation: A robust JavaScript-powered backend ensures accurate gameplay with efficient win detection and draw recognition.

  2. Dynamic UI: Eye-catching CSS styles and responsive design principles make the game visually appealing and functional on any device.


🛠️ Getting Started:

  1. Clone the Repository:

    git clone https://github.com/chedelino/connect4Game.git
  2. Open the Project: Navigate to the directory and open fichier.html in your browser:

    cd connect4Game
    open fichier.html
  3. 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:

  1. Select a column to drop your disc by clicking on it.
  2. Players alternate turns, aiming to connect four discs in a row.
  3. The game announces the winner or a draw when the board is full.
  4. 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!