Skip to content

jscervantes/memory-game-dracula-edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-work - Memory Game

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

Submitted by: Jose Cervantes

Time spent: 4 hours spent in total

Link to project: (insert your link here, should start with https://glitch.com...)

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)

Here's the game in action, in all of it's six-buttoned, sped-up-with-each-round glory:

Start and Stop button functionality:

Here's an example of someone losing the game:

Here's an example of someone winning the game:

Reflection Questions

1. If you used any outside resources to help complete your submission (websites, books, people, etc) list them here.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random

https://stackoverflow.com/questions/5836833/create-an-array-with-random-values

2. What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words)

I would say that the biggest challenge for me, overall, was having to teach myself how to implement Javascript on the fly. Specifically, implementing the random pattern upon new game was the most challenging aspect of this prework. I had very little experience using it prior to this prework, but using intuition and my base knowledge of Python, I was able to carry over the concepts of variables, iteration, and for loops. All that was needed was a bit of a recap of Javascript syntax, and a bit of guidance from the links listed above in Question 1. All in all, this was a very fun project to work on!

3. What questions about web development do you have after completing your submission? (recommended 100 - 300 words)

The first question that comes to mind is, how ubiquitous is Javascript in web development? Knowing how long it has been around, I am wondering if we are seeing a shift towards another language soon. Another question is, how common is the use of frameworks like Flask and Django in the field of web development, specifically in private businesses? Lastly, besides acquiring a stronger understanding of Javascript, what other languages, frameworks, or concepts would you recommend someone to learn who is new to web development?

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)

First, I would take a more thorough crack at implementing the final four optional features into my memory game. Then, I would work on revamping the look of the entire page through HTML and CSS tweaking. I would try to give it a skin that better complements the Dracula color scheme I implemented. I would also love to program the Dracula Theme Song play whenever the game is started.

Interview Recording URL Link

My 5-minute Interview Recording

License

Copyright [YOUR NAME]

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