Bit late, but I'll chuck in a comment anyway ;)
Screeps is a free to play game where you use Javascript to direct your "Creeps" via Scripts to mine and collect resources. There's also games like Checkio & Codecombat; these are designed for people looking to learn a new language or people that are completely new to coding. However, there are a number of awesome games on these sorts of sites that I find quite interesting even as an established dev.