Giter Site home page Giter Site logo

siniekoo19 / simon-says-game Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

Simon Says Game - This project is a simple implementation of the classic memory game using HTML, CSS, and JavaScript.

Home Page: https://siniekoo19.github.io/Simon-Says-Game/

HTML 14.19% JavaScript 57.08% CSS 28.73%
beginner-project css html html-css-javascript javascript simon-says webdevelopment webdevelopment-project responsive-design responsive-layout

simon-says-game's Introduction

Simon Says Game

Welcome to the Simon Says Game! This project is a simple implementation of the classic memory game using HTML, CSS, and JavaScript.

Play the Game ๐Ÿ’œ๐Ÿ’›๐Ÿ’™โค๏ธ

You can play the game here.

How to Play ๐ŸŽฎ

  1. Start the Game:
    • To start the game, press any key on the keyboard.
  2. Watch the Sequence:
    • One of the four colored boxes will flash.
    • Remember the sequence of the flashed boxes.
  3. Repeat the Sequence:
    • Click the boxes in the same order as they flashed.
    • If you repeat the sequence correctly, the game will proceed to the next round and add another flash to the sequence.
  4. Continue the Sequence:
    • Each round adds a new box to the sequence.
    • Keep repeating the sequence correctly to advance to higher rounds.
  5. Game Over:
    • If you click the wrong box, the game ends.
    • Your score, which is the number of rounds you completed, will be displayed.
    • To restart the game, press any key on the keyboard again.

Project Structure ๐Ÿš€

The project consists of the following files:

  • index.html: The main HTML file containing the structure of the game.
  • styles.css: The CSS file for styling the game elements.
  • script.js: The JavaScript file that contains the game logic.

GamePlay Mechanics

  • Sequence Generation: The game randomly selects one of the four boxes to flash in each round. The sequence of flashed boxes is stored and extended in each round.
  • User Input: Users must click the boxes in the exact sequence as they flashed. The game checks the user input against the stored sequence.
  • Feedback: The game provides visual feedback by flashing the body red to indicate the user entered the wrong sequence and displays the current score with a game over message when applicable.
  • Responsive Design: The game is designed to be responsive. On smaller screens (less than 600px), a "Start" button will be displayed. Once the game starts, the button will disappear, and the level information will be displayed. If the user inputs a wrong sequence, the game over message will be displayed, and the user can restart the game by pressing the "Start" button again.

๐Ÿš€ About Me

๐Ÿ‘‹ Hi there! I'm Sinchana Chatterjee, an enthusiastic and determined B.Tech student with a fervent aspiration to excel as a Web Developer.

Authors

@siniekoo19

Acknowledgments

  • Thanks to githubs pages for providing a platform to deploy my website.
  • Thanks to the open-source community for their invaluable contributions to the tools and libraries used in this project.

Feedback

If you have any feedback, please reach out to me at [email protected]

simon-says-game's People

Contributors

siniekoo19 avatar

Stargazers

 avatar

Watchers

 avatar

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.