Skip to content

123MikeDomingue/Light-and-Memory-Game

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: Mike Domingue

Time spent: 6 and a half 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

Here's a walkthrough of implemented user stories:

Reflection Questions

  1. If you used any outside resources to help complete your submission (websites, books, people, etc) list them here. [https://courses.codepath.org/snippets/summer_internship_for_tech_excellence/prework]

  2. What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words) [A challenge I encounter in creating this submission is trying to understand the different functions of the code in how all the parts in the light and memory game connect with each other. HTML,CSS and JavaScript are still new to me in learning more about it. I was happy that the pre-work assignment helps you along the way to create light and sound memory game. The function playClueSequence was one of the things that was challenging to understand for me. The foor loop section in playClueSequence was tricky for me to understand because I wasn't too sure how the loop ran for the clue times. I ended up understanding it my writing it down on a piece of paper so I can see what is being looped each time ]

  3. What questions about web development do you have after completing your submission? (recommended 100 - 300 words) [Some questions I have about web development is how do you create some sort of debug to see if you have any logical errors in your code even though it runs smoothly? Another question I have is what is a solid layout or plan you should have when it comes to web development? A lot of times people can be kind of afraid of web development because they don't have any ideas on what type of web application to make and what should be the first step to take. Are there also any specific software you should stick to too when it comes 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) [If I had a few more hours to work on this project I would work on adding a function that keeps track on how many times I won and how many times I lost. I would also want to work on a timer that goes by fast so you are not taking too long pressing the buttons. ]

https://cdn.glitch.com/506b90e7-acab-4c75-9f6a-6a4660bec12d%2FLightandMemorygame.gif?v=1616456749605

License

Copyright [Mike Domingue]

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