GithubHelp home page GithubHelp logo

supratikrulz / supratikrulz.github.io Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 215 KB

Its a simulation of famous 70's electronic game created in JavaScript

CSS 8.01% HTML 71.48% JavaScript 20.51%
simon simongame javascript mvc-pattern javascript-game memory-game javascript-prototypes this this-keyword supratikrulz

supratikrulz.github.io's Introduction

SimonGame

Its a simulation of famous 70's electronic game created in JavaScript

About

Simon is a classical memory game,it is basically a memory game where a user has to remember the pattern of button press sequence. Every time a user submit the sequence right, sequence is incresed by one level. There are total twenty stages present in this game.

Software Specification

  • Javascript
  • HTML 5
  • CSS

Stories

1.    User Story: I am presented with a random series of button presses.


2.    User Story: Each time I input a series of button presses correctly, I see the same series of button presses but with an additional step.


3.    User Story: I hear a sound that corresponds to each button both when the series of button presses plays, and when I personally press a button.


4.    User Story: If I press the wrong button, I am notified that I have done so, and that series of button presses starts again to remind me of the pattern so I can try again.


5.    User Story: I can see how many steps are in the current series of button presses.


6.    User Story: If I want to restart, I can hit a button to do so, and the game will return to a single step.


7.    User Story: I can play in strict mode where if I get a button press wrong, it notifies me that I have done so, and the game restarts at a new random series of button presses.


8.    User Story: I can win the game by getting a series of 20 steps correct. I am notified of my victory, then the game starts over.


How to play?

Go to this link .

supratikrulz.github.io's People

Contributors

supratikrulz avatar

Watchers

 avatar  avatar

supratikrulz.github.io's Issues

Flash Time Mismatch when wrong button is pressed

function buttonClick(btn) {
flashParticularButton(btn);
userAnswer.push(btn);
if (compQuestion[userCounter] === userAnswer[userCounter]) {
console.log(compQuestion[userCounter] === userAnswer[userCounter]);
userCounter++;
if (userAnswer.length === compQuestion.length) {
nextLevel();
}
} else {
if (strict) {
alert("Wrong! Starting from beginning");
restart();
} else {
userAnswer = [];
userCounter = 0;
alert("Wrong! Watch Closely!");
playSequence();
}
}
}

need to modify the code

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.