A game that lets players to play with software development is an excellent method to teach programming and coding concepts read this post here such as loops and conditional statements. Zachtronics Shenzhen I/O is one game that accomplishes this. It puts players in the shoes of angry engineers who work for a dull firm and have to create computer chips by hand. The circuits they have to design get more difficult beginning with making lights flash in a particular pattern.
The game’s interface is very similar to that found in browsers, and it is a great way to teach scripting. Another excellent example is Screeps which combines JavaScript programming with massively multiplayer online gameplay to build self-sustaining colonies. Both games are excellent at teaching the basics of concepts and slowly introducing others.