Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nejcfurh/guess-my-number
MiniGame: Guessing Numbers
https://github.com/nejcfurh/guess-my-number
Last synced: 16 days ago
JSON representation
MiniGame: Guessing Numbers
- Host: GitHub
- URL: https://github.com/nejcfurh/guess-my-number
- Owner: nejcfurh
- Created: 2022-05-01T20:16:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-01T20:26:00.000Z (over 2 years ago)
- Last Synced: 2024-11-11T02:09:58.849Z (2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GuessMyNumber
Second project in JS after just starting with learning javascript and WebDev.
The idea of the project was to create a miniature game with eventlisteners, guessing the number and basic DOM manipulation exercise.
In the app.js file, there are separators included in order to easily look over the code and what every instance of it does.
Included are the functions to display messages, modify the background color and restart the game with reusable highscore value (until complete reboot of the website).
Included are the limits of what values are permitted and invalid.
This project was instructed as very basic DOM manipulation exercise and as an additional lessons in DOM manipulation in order to deepen javascript knowledge.
Code is reusable by anyone. Open to additional suggestions regarding code usage/better coding with DRY principle in mind.
This is the English version of the minigame and it does not include writing streamlined code in order with the DRY principle. That code is included in the separate branch named SLO.