Mastermind

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

mastermind

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

comments

  • detronizator Sun, 15 Aug 2010 - 14:07

    I love it man! What about the competition? When the winner will be announced?

  • Matt Sun, 15 Aug 2010 - 15:15

    Hey dude! Thanks :) It's all explained there: http://js1k.com/home Entries close on 10th September. Have your own ready!

Comments are disabled temporarily until I find a suitable system, but you can still send a comment by email and I'll add it to this post. Thanks!