Welcome to the Guess The Code game! This project is a fun and interactive browser-based game where players attempt to guess a randomly generated code within a set number of attempts.
- PLAY
- Introduction
- Features
- Demo
- How to Play
- Installation
- Usage
- Project Structure
- Contributing
- License
- Contact
Play this game live at here.
Guess The Code is designed to test your logical thinking and pattern recognition skills. The game generates a secret code, and players must guess it using feedback provided after each attempt.
- Randomly generated codes for each game session.
- Intuitive user interface.
- Feedback on each guess to guide the player.
- Responsive design for desktop and mobile users.
- Easy to customize and extend.
- Open the game in your browser.
- Enter your guess in the input field.
- Submit your guess to receive feedback:
- Correct digits in the correct position.
- Correct digits in the wrong position.
- Use the feedback to refine your guesses.
- Win the game by guessing the code within the allowed attempts!
Follow these steps to set up the project locally:
- Clone the repository:
git clone https://github.com/Developer-Parth/Guess-The-Code.git
- Navigate to the project directory:
cd Guess-The-Code
- Open the
index.html
file in your browser.
To customize the game:
- Modify the code generation logic in
generateNew.js
. - Update the styling in
index-style.css
. - Enhance interactions in
interactions.js
.
Here’s an example of how the game works:
- Secret code:
1234
- Player guess:
1356
- Feedback:
- Correct digit in the correct position: 1 (1st position).
- Correct digit in the wrong position: 3.
File/Folder | Description |
---|---|
index.html |
Main HTML file for the game interface. |
index-style.css |
CSS file for styling the game. |
generateNew.js |
JavaScript file for generating random codes. |
interactions.js |
JavaScript file for handling user interactions. |
res/ |
Folder for additional resources (e.g., images, fonts). |
LICENSE |
License file for the project. |
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature-name"
- Push to your branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the terms of the MIT License. See the LICENSE file for details.
For any questions or feedback, feel free to contact me:
- GitHub: Developer-Parth
- Email: [email protected]