This is a good start on an innovative approach to teaching kids how to code. It’s a little buggy as of yet, but you can see the idea will work.
CodeCombat
Learn programming in glorious strategy game challenges, coding with others in real time to defeat your enemies!