Memory Game

by Kylan_h in Circuits > Electronics

126 Views, 0 Favorites, 0 Comments

Memory Game

Picture of Circular Board.PNG

I made a Memory Game. Once you begin, you watch for which side the light lit up on, and then you click the sides in the same order they appeared. As the rounds progress, the more you will have to memorize, and the faster it will get.

Supplies

Picture of makecode homepage.PNG

Using the website called MakeCode, I created a new project to make my game.

Source code for instructables.PNG

I used JavaScript to write a script that allows us to play the game. There is also the option of using block coding, but I prefer to use JavaScript. I made a time limit to prevent any uncertainty, and had the game keep score. Once you lose, the game will make a beep for every round you won.

Circular thing light on.PNG

Once the code was done, the game worked perfectly, As you can see in the picture, the lights on the left side are lit up, so you would have to remember that and click the left button when ready.