Giter Club home page Giter Club logo

project-1's Introduction

Simon Says

Explanations of the Technologies Used

Throughout the project I used HTML, CSS, and Javascript. I made all of my buttons and components of the game in html, and styled them in CSS. I used CSS to also create the illusion that the buttons being pressed to mimic the game are lighting up. In my Javascript I decided to use Jquery instead of Vanilla JS. I feel that this was something that I liked better, and was easier for me to use in my code.

Approach Taken

At first I designed my wireframes to look exactly how I wanted my game to look. I then used an actual picture of the Simon game to recreate it in HTML and CSS and make the game look as realistic as possible. This was a really fun part of the project for me. I then wrote out all the steps and functions that I would need in order to execute the game. This really helped when starting to write my code because I previously thought out the logic of how the game would turn out. In the purposes of the game, I made it end at 6 turns for now in order to show that after the user successfull copied the pattern 6 times, all the buttons will light up and the counter will say "WINNER".

User Stories

You can click the same buttont that the computer generated and then if the click is correct, the game will generate a new addition to the pattern

Wireframes

How-to-use Instructions

The user will press the start button, then one of the colors will light up. The user must press the same button that the computer randomly generated. This pattern will continue until the user pressed the wrong button and breaks the pattern that the randomizer has created.

Unsolved Problems

The one thing that was the hardest for me was figuring out the setTimeout function to work successfully. I got the lights to blink in the order of the computer randomizer one by one up until turn 4 or 5. Sometimes it works longer than others, but this was definately a challenge for me.

project-1's People

Contributors

cwarner523 avatar

Forkers

jlr7245 halo123u

project-1's Issues

Delay of the blinking for a new element in the array

I've spent all of yesterday trying to figure out where to put the correct setTimeout function in the code in order to have the lights flash in the correct order. I got it to work sometimes, but it is when there is a new element being pushed into the array it is blinking at a different time and I really cant figure out why it's not working. If you could take a look that would be great! Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.