Memory Game is a Light & Sound Memory game to apply for CodePath's SITE Program.
Submitted by: TARANDEEP SINGH
Time spent: # 25hrs
Link to project: https://glitch.com/edit/#!/long-neon-collision
The following required functionality is complete:
- Game interface has a heading (h1 tag), a line of body text (p tag), and four buttons that match the demo app
- "Start" button toggles between "Start" and "Stop" when clicked.
- Game buttons each light up and play a sound when clicked.
- Computer plays back sequence of clues including sound and visual cue for each button
- Play progresses to the next turn (the user gets the next step in the pattern) after a correct guess.
- User wins the game after guessing a complete pattern
- User loses the game after an incorrect guess
The following optional features are implemented:
- Any HTML page elements (including game buttons) has been styled differently than in the tutorial
- Buttons use a pitch (frequency) other than the ones in the tutorial
- More than 4 functional game buttons
- Playback speeds up on each turn
- Computer picks a different pattern each time the game is played
- Player only loses after 3 mistakes (instead of on the first mistake)
- Game button appearance change goes beyond color (e.g. add an image)
- Game button sound is more complex than a single tone (e.g. an audio file, a chord, a sequence of multiple tones)
- User has a limited amount of time to enter their guess on each turn
The following additional features are implemented:
- List anything else that you can get done to improve the app!
If you recorded multiple GIFs for all the implemented features, you can add them here:
- If you used any outside resources to help complete your submission (websites, books, people, etc) list them here.
- https://www.w3schools.com/
- https://www.geeksforgeeks.org/
- https://www.google.com/search?q=how+to+add+sound+button+in+html&sxsrf=APq-WBuSiM8J_tBtqctGWDq97T8yqrV8xg%3A1648669294857&ei=brJEYsTsM86Iggf7-7awCA&oq=how+to+add+sound+in+the+butt&gs_lcp=Cgdnd3Mtd2l6EAMYADIGCAAQFhAeMgYIABAWEB4yBggAEBYQHjIFCAAQhgMyBQgAEIYDMgUIABCGAzoECAAQRzoECCMQJzoFCAAQgAQ6CAgAEBYQChAeOggIIRAWEB0QHkoECEEYAEoECEYYAFCvAlixUWDKWWgEcAJ4AIAB3QGIAaoNkgEFOC41LjKYAQCgAQHIAQjAAQE&sclient=gws-wiz#kpvalbx=_hrJEYsF1r639Bv_8uOAH15
- https://stackoverflow.com/questions/12953928/immediate-play-sound-on-button-click-in-html-page
- https://codepad.co/snippet/button-with-sound-effect
- https://bobbyhadz.com/blog/javascript-change-button-color-onclick
-
What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words) In creating this submission i have to work from scratch as i did it in few years back. I started from the challenge where i need to make a button to adding a sound to the button. it took me a lot of time as i was searching a lot of website how people have done this and checking there resoursces.I did experment alot but was not succsful for a lot of things i was thinking to add as i said it in the 4 question. I faced challenge in learning the functions and have to go through the learning process of it as i am not good at it. But this time i really push myself and implement the things. I learned a lot by the way but i choose the strategy of learning javascript the same way i learn java. I think of the code as the same way as i learned the java and c++ functions and did it the implementation. I compare the code and see how they are similar and different which reallyl speed up the process and the rest was the implmentation.
-
What questions about web development do you have after completing your submission? (recommended 100 - 300 words)
It was fun doing this project.I am excited to know what other levels are there in web developing.I have heared about different kind of things like node.js, angular.js,react.js, UI and UX. I have just heared of them and i know thery are used in making them but never used it .
I was curious to get to know what additional things i can do. i ahevnt learnt js well but once i did i will leanr other things that i am wishing to implement like node.js, angualr.js, etc i wonder how i cna implement them and make it more intresting?. I hopefully start learning the node js and angular from linkdin learning.
-
If you had a few more hours to work on this project, what would you spend them doing (for example: refactoring certain functions, adding additional features, etc). Be specific. (recommended 100 - 300 words)
-
Firstly,i would like to change the sound and different animal sound instead of that which will be more inresting to play.
2.I would also like to add things like the picture of the animal when the button is clicked for the specific sound.
- I would have add a option of making your own account option and also have different kinds of option of sounds and different lessons like flying animals,vechiles and for the kids which they can learn one by one and unlcok the next once they cleared the last challenege.
4 I would have made my code more clear and more in way step by step.
5 I would have also add the setting button in which you have the option of changing into light mode,dark mode, system default.
[My 5-minute Interview Recording](y
video3701830038.mp4
our-link-here)
Copyright [TARANDEEP SINGH]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.