Just had a look at CodeCombat – I love it! I started out as this hero who had to rescue people, fighting my way through areas. But it was up to me to add the commands to get my hero to move, attack, talk etc.
Great way to learn how to program while having fun at the same time.
Check it out at http://codecombat.com