Skip to content

samaraaugust/MemoryGame-CodePath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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: Samara Augustin

Time spent: 3 hours spent in total

Link to project: https://glitch.com/edit/#!/memorygamecodepath

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

Here's a walkthrough of implemented user stories: GIF Created With LiceCap

Reflection Questions

  1. If you used any outside resources to help complete your submission (websites, books, people, etc) list them here. [YOUR ANSWER HERE] https://www.w3schools.com/js/js_random.asp https://www.w3schools.com/jsref/jsref_return.asp https://www.w3schools.com/jsref/jsref_push.asp https://www.w3schools.com/js/js_loop_for.asp

  2. What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words) A challenge that I encountered while I was creating this submission was that the sounds from the buttons weren't automatically played when pressed. Initially, I assumed that there was a bug in my project; however, when I attempted to retrace my steps, I realized that I couldn't pinpoint the issue. Afterward, I tried rewriting the functions hoping that the error was related to a syntax issue I possibly made while following the instructions. When I tried the buttons again, they finally worked. Another slight challenge that I encountered was switching between HTML, JavaScript, and CSS programming styles. Since the programming styles are different, there would be instances where I would program using a different syntax which would create errors in my code.

  3. What questions about web development do you have after completing your submission? (recommended 100 - 300 words) The questions that I have about web development primarily correspond to the opportunities or capabilities of the following programming languages JavaScript, CSS, and HTML. Based on the description that was provided for us in the instructions, it was interesting to learn that each language can be used for specific functions. My question is that were web development programming languages created with the purpose of being used alongside other languages? Also, is it possible to solely rely on one web development programming language to fulfill every task that is needed?

  1. 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 would complete some of the optional features given to us to make the version of the website more advanced. Also, I would want to change the position of the buttons on the site to remain centered rather than constantly changing to fit the screen size. I would also like to change how some of the features are presented, maybe include some graphics, such as pictures or page borders. Another feature that I would like to implement would be to add snippets of popular songs to buttons so that once they are pressed, a popular harmony or melody would play. Another feature that would be fun to implement would be if the user could choose before each game the music genre they would like to play with, like Gospel, Rock, Classical, Rhythm and blues, etc. Therefore, based on their genre selection, different types of popular songs would play. This would be an exciting feature because it can add a fun element to the web page.

License

Copyright [Samara Augustin]

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