Skip to content

monica-sa/games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess The Code

Welcome to Guess The Code, a simple and fun number-guessing game where you try to crack a 4-digit secret code!

🎮 How to Play

  1. The game generates a random 4-digit code using numbers from 1 to 9 (no repetitions).

  2. Enter your guess in the input field and click "Check".

  3. The game will tell you:

  • How many numbers are correct.

  • How many numbers are in the correct position.

  1. Keep guessing until you crack the code!

🚀 Features

  • 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).

🛠️ Installation

To run this project locally:

  1. Clone the repository:
git clone https://github.com/your-username/guess-the-code.git
  1. Open the index.html file in your browser.

🛠️ Technologies Used

HTML: Structure of the game.

CSS: Styling and layout.

JavaScript: Game logic and interactivity.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

🙏 Credits

Developed by Mónica Sá. Inspired by classic code-breaking games.

🤝 Contributing

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.

📧 Contact

If you have any questions or feedback, feel free to reach out:

GitHub: monica-sa

About

A repo to host some game projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages