Welcome to Guess The Code, a simple and fun number-guessing game where you try to crack a 4-digit secret code!
-
The game generates a random 4-digit code using numbers from 1 to 9 (no repetitions).
-
Enter your guess in the input field and click "Check".
-
The game will tell you:
-
How many numbers are correct.
-
How many numbers are in the correct position.
- Keep guessing until you crack the code!
-
Interactive Feedback: See how many numbers and positions are correct after each guess.
-
Attempt History: A table displays all your previous attempts.
-
Restart Option: Start a new game at any time by clicking "Reiniciar" (Restart).
To run this project locally:
- Clone the repository:
git clone https://github.com/your-username/guess-the-code.git- Open the index.html file in your browser.
HTML: Structure of the game.
CSS: Styling and layout.
JavaScript: Game logic and interactivity.
This project is licensed under the MIT License. See the LICENSE file for details.
Developed by Mónica Sá. Inspired by classic code-breaking games.
Contributions are welcome! If you have any suggestions or improvements, feel free to:
Fork the project.
Create a new branch (git checkout -b feature/YourFeature).
Commit your changes (git commit -m 'Add some feature').
Push to the branch (git push origin feature/YourFeature).
Open a pull request.
If you have any questions or feedback, feel free to reach out:
GitHub: monica-sa