Skip to content

Orphy123/Memory-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-work - Memory Game

Memory Game is a Light & Sound Memory game to apply for CodePath's SITE Program.

Submitted by: Oheneba Kwaku Berko

Time spent: 10 hours spent in total

Link to project: https://glitch.com/edit/#!/halved-comet-track?path=style.css%3A1%3A0

Required Functionality

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!

Video Walkthrough (GIF)

If you recorded multiple GIFs for all the implemented features, you can add them here: http://g.recordit.co/StGEraEYla.gif

Reflection Questions

  1. If you used any outside resources to help complete your submission (websites, books, people, etc) list them here. [I watched a few tutorials on YouTube about CSS and JavaScript to help me better understand the project.]

  2. What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words) [I did not encounter that many challenges when working on the project because of my prior experience working with HTML and CSS. However, I had to do a little more research when working on the javaScript portion of the assessment. I watched a few Youtube videos and read the tutorials the prompts on the instructions provided. One portion that gave me a bit of an issue while working on the project was trying to get the start and stop buttons to alternate and hide with each other. I had a bit of an issue with my startGame() and stopGame() functions, specifically the portion of adding and removing the “hidden” element from the buttons. It took me a while to figure it out, but I started working on the code and retook it from the very top because I could not figure out where the error was coming from. After further analysis and looking at the code in its entirety, I realized it was not due to any technical problems, but it was because I had written the word “start” with a smaller “s” and the word “Stop” with a capital “S.” Once I remedied this issue, my code started working perfectly again. The rest of the code went quite smoothly.]

  3. What questions about web development do you have after completing your submission? (recommended 100 - 300 words) [I do not have any specific questions, but I am interested in keeping up my study with javascript because I was intrigued by what I could do with it on the project. I want to explore just how much I can accomplish with this knowledge.]

  4. 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) [I started working on this project pretty late and close to the deadline, so, unfortunately, I did not have enough time to work on the optional portion of the assignment, but if I had a few more hours, I would definitely start there. I want to explore how to implement a timer into the program. I would like to add some more styles, pictures, and graphics to gamify the website. I would like to add a round counter beside the tiles to inform the user of how many rounds he has successfully completed. If I had enough time, I would like to implement a two-person player version of this game that keeps track of how far each opponent has reached. I would also like to implement an absurdly large number of rounds. I would also like to make the game go on for about 1,000 or 10,000 rounds and have a scoreboard with the best player score of all time. These are a few features I would undoubtedly be interested in developing for this website to make it more interactive and personal.]

Interview Recording URL Link

My 5-minute Interview Recording

License

Copyright [Oheneba Berko]

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published