Code Hunt is 'an educational, browser-based coding game' from Microsoft where you can choose what language to work with from a choice of two, C# and Java, and slowly work through fixing and changing increasingly complex chunks of code.
Users are scored on the elegance of their code, with functional but ugly code scoring lower than a more aesthetic solution.
“We built Code Hunt to take advantage of the fact that any task can be more effective and sustainable when it’s fun. And Code Hunt is fun! It uses puzzles, which players explore by means of clues presented as test cases. Players iteratively modify their code to match the functional behavior of secret solutions.”
“Once their code matches, lights flash and sounds play, letting players know that they have ‘captured’ the code. Players then get a score, which depends on how elegant their solution is, and are encouraged to move on to the next puzzle or level.”