Memory Game is a Light & Sound Memory game to apply for CodePath's SITE Program.
Submitted by: ELISHA SUHAS THEETLA
Time spent: 9 hours spent in total
Link to project: (https://glitch.com/edit/#!/chisel-arrow-metatarsal)
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:
- Page automatically reloads after every game for a new pattern to be generated!
- User can select between a difficulty level which changes length of the pattern and the speed of the game.
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://developer.mozilla.org/en-US/ https://stackoverflow.com ]
-
What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words) [While working on this project, I initially thought it was pretty easy to understand the code and follow the steps, and when I moved on to the optional features, it led me to think and work on a new regulation that would help me add more features and make the page look cooler. To be more specific, I found it a little challenging to make the computer play back the sequence of clues, including sound and visual cues for each button increase after every round, and when I started to work on it, I couldn’t figure out how much time should be reduced between reach round. After a lot of trial and error and research, I understood how much to reduce. While researching, I found answers to the rest of the additional items I wanted to add. This was the most confusing feature for me, but it was easy after I understood what to do. I then added a new feature where the player only loses after three mistakes (instead of on the first mistake). To do that, I said a mistake counter variable and every time the user makes a mistake, it is incremented, and when it reaches three, the loose game function gets called, and the game lost alert will pop up.]
-
What questions about web development do you have after completing your submission? (recommended 100 - 300 words) [I always have questions about how much more efficiently I can write my code. The first time I write code for anything, it isn’t the best most of the time, but when I look at it again after an hour, I find new ways to improve. Especially the concepts of loops and functions and how they have multiple ways of being written; I learn more and more as I keep writing more of them, and sometimes I end up writing the best code possible. Web development is something I had never done before and only had second-hand experience with, and when I attempted doing this project on my own with little help from google, a lot of it was similar to app development, and the same coding concepts were used everywhere but in different languages. The questions I have, keep getting answered by themselves as I practice and get involved in more projects. I want to dive deeper into the front-end development of a website and get fluent in HTML, j.script, CSS, python, react, cloud computing, and get an idea of everything to choose what I want to dive deep into.]
-
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) [If I had a few more hours to work on this project, I wanted to implement the rest of the additional features that I could not include in my project. The segment where the game button appearance can change goes beyond just the color and adding sound to the Game button rather than just a single tone. The problem with that was that I could not attach it to the switch. I would have also liked to add a timer feature to count how long it took for the player to finish the game. I also wanted to change how the buttons looked into a rocket ship or an asteroid, but I did not have enough time to figure out a viable code. ]
My 5-minute Interview Recording
Copyright [ELISHA THEETLA]
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.