Memorit is a simple implementation of the classic "Simon" memory game using HTML, CSS, and JavaScript (jQuery). The game involves repeating a sequence of colors that gets progressively longer, testing the player's memory.
Make sure you have the following software installed:
- A modern web browser (Chrome, Firefox, Safari, etc.)
- A code editor (VS Code, Sublime Text, etc.)
- Clone the repository:
git clone https://github.com/gowtham2k2/memorit.git
- Navigate to the project directory:
cd memorit
- Open the
index.html
file in your web browser to start the game.
- Press any key or click on the scoreboard to start the game.
- The game will show you a sequence of colors. Memorize the sequence.
- Repeat the sequence by clicking on the colored tiles.
- If you get the sequence right, the game will add one more color to the sequence.
- If you get the sequence wrong, the game will display "Game Over!!!" and you can restart by clicking the replay button.
gamePattern
: Stores the sequence of colors generated by the game.userPattern
: Stores the sequence of colors clicked by the user.colors
: An array of possible colors.gameStarted
: A flag to check if the game has started.level
: Tracks the current level of the game.
Feel free to modify and enhance the game. Contributions are welcome!