Skip to main content

Posts

Showing posts from May, 2021

source code of simple memory game - Simon

Simon game is an electric memory game.  The device creates a series of tones and lights and requires a user to repeat the sequence. If the user succeeds, the series becomes progressively longer and more complex. Once the user fails or the time limit runs out, the game is over. Read in wikipedia. This android game is a simulation of that.  The buttons on the screen glow in some order with their notes. The user must reproduce these button clicks in the same order.  It is a very good game for memory with the added benefit of audio feature.  The source code of the game is available in my github page  Simon  The android game with Simon and 3 more memory games by Hegdeapps can be downloaded from google play  Basically in our layout file, we have four SimonCell custom widgets which are extended classes of image views. These are the four colored buttons you see in the image above.              <com.hegdeapps.simonsays.SimonCell                 android:id="@+id/cell1"