Simon game in JavaScript with source code

Simon game in JavaScript with source code

Introduction

Simon game is a web-based game project. This project is coded in CSS, HTML5, and Javascript. It is easy to use.

Simon game basically is a mind game. It is invented by Ralph H. Baer and Howard J. Morrison. Well in reality this is an electrical hardware game. But this game is built using a programming language in this project. The project is easy to setup and implement.

The simon game logic is simple. All you have to do is follow the sound in correct order. You must think carefully. The game has four buttons. Red, green, blue, and yellow. Each button has different sound. When the game starts it automatically plays the first sound. See the screenshot below.

Simon game

The player must listen to the sound path of the game and tap the button in correct order. This simon game project is simple and has a small number of codes. You can play this game online. It further has four buttons with different colours and sounds.

If you tap you will listen to different sounds on each. If you tap the wrong button the game will end. You must follow the flow in order to get a high score. You can play slow alone or duo with friends and compare who scores more. Javascript provides functionality to the game. Download the project and get experienced by yourself.


How to use this project?

  • Download the project.
  • Set up an editor or IDE. (vs code, sublime text, atom)
  • Open the project folder on the editor.
  • Launch the program in the browser. (chrome, firefox)
  • Play the Simon game.
  • Score, share & enjoy!

Click the button below to get the source code for this project.