A game that lets players to experience software development is an excellent way to teach programming and coding concepts such as loops and conditional statements. Zachtronics Shenzhen I/O is one game that accomplishes this. It puts players in the shoes disgruntled engineers who work for a boring company and are required to design computer chips by hand. The circuits they’re asked try here to design get more difficult, starting with making the lights flash in a particular pattern.
The interface in the game looks very similar to the tools used by developers in browsers and teaches scripting. Another excellent example is Screeps, which combines JavaScript coding with massively multiplayer online gameplay to create self-sustaining colonies. Both games are excellent at teaching the basics of concepts and slowly introducing others.