Welcome to the Car Guessing Game, a fun, interactive game built using HTML, CSS, and JavaScript!
The objective of the game is to guess the correct combination of colored cars hidden behind a row of hidden car images. You have multiple attempts to guess the correct color and position of the cars. After each guess, you'll receive feedback on how many cars are in the correct color and how many are both the correct color and in the correct position.
- Normal: 6 car colors (Red, Green, Blue, Orange, Pink, Yellow)
- Hard: 7 car colors (adds Lime)
- Impossible: 8 car colors (adds Lime and Purple)
- Difficulty Levels: Choose from Normal, Hard, and Impossible modes.
- 10 Attempts: You get up to 10 tries to guess the correct combination.
- Feedback: Receive feedback after each guess regarding correct color and correct position.
- Game Reveal: At the end of the game (win or lose), the correct car combination is revealed.
- Dynamic UI: Responsive design with car images replacing dropdowns for ease of play.
- Select your preferred difficulty level (Normal, Hard, or Impossible).
- Click the "Start the Game!" button to begin.
- For each row, use the dropdown to select the car color for each position.
- After making your guess, click "Submit Guess."
- Based on your feedback, adjust your guesses and try again.
- If you guess all correct cars in their correct positions, you win!
- If you use all 10 attempts without success, the game ends, and the correct answer is revealed.
You can play the Car Guessing Game directly on GitHub Pages: Play Now
- HTML5: Markup for the game structure.
- CSS3: Styling and layout for the game interface.
- JavaScript: Game logic and interactivity.
You can view the source code and contribute at: Car Guessing Game Repository
- Clone the repository to your local machine:
git clone https://github.com/donbagger/Car-Guessing-Game.git - Open the
index.htmlfile in your web browser to start playing the game locally.
This project is licensed under the MIT License.
Enjoy playing the Car Guessing Game!