Latest fun tiny project: creating a small mastermind game in javascript in less than 1k for http://js1k.com/.

Play here: http://mastermind.ekynoxe.com/ or download it from github and run it offline!

Rules are simple:

Guess by submitting with your keyboard numbers from 0-9
After pressing 4 digits the guess is automatically submitted
The result shows symbols:
* no symbol means no digit is in the code to guess
* a ‘-’ means one of the digits is in the code to guess, but not at the correct place
* a ‘+’ means one of the digits is in the code to guess, AND at the correct place
If a digit exists twice in the code to guess, symbols do not represent it, you will have
to get it by yourself!
An alert is displayed when the code is found, and the game reset