Simon is a game of short-term memory skill. 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.
- The computer generates a random color (green, red, blue or yellow) [and a tone linked to that color]
- If the player presses the correct combination of colors, a new color will be appended at the end of the list
- If the player selects an incorrect color, then the game is over
- The game runs until the player loses
Welcome to the game!
Simon will show you a sequence of colors, repeat the sequence by entering the colors separated by a space.
The colors are: Red [R], Blue [B], Yellow [Y] and Green [G].
Simon says: yellow
Your turn: y
Good job!
Simon says: yellow green
Your turn: y g
Good job!
Simon says: yellow green blue
Your turn: y g r
Game over!
- Install composer
curl -sS https://getcomposer.org/installer | php
composer install
(inside thephp
folder)vendor/bin/phpunit
orcomposer test
- Install Node
npm install
(Being in the javascript folder)npm test
- Install Deno
deno test
(Being in the typescript folder)
- Install dependencies and tests with Maven [mvn test].
- Run the tests with the IDE
sbt
(in scala folder)~test
to run the tests on hot reload
- Install SDKMan
sdk install java 11.0.12-open
install OpenJDKsdk install sbt
once SDKMan is installed.
- Download Visual Studio Code
- Install for VS Code Metals
- By console: You can install dependencies and launch tests with
gradlew test
. - Using IDE: Simply open the project from the root of the Kotlin template.
- Install Microsoft Visual Studio Community 2022
- Open the project and it will automatically download the required Nuguet packages
- Install python 3.x
- After downloading the source code into the */python/ folder, create a virtual environment:
python3 -m venv env
4.- Activate in virtual environment:
- windows:
.\env\Scripts\activate.bat
5. - linux/mac:
source env/bin/activate
.
pytest
to run the tests.