A game that lets players play with software development is an excellent way to teach programming concepts and coding techniques, including loops and conditional statements. Games that do this include Zachtronics Shenzhen https://mrworkspace.nl/2016/03/16/windows-7-iops-for-vdi-deep-dive/ I/O which puts players in the shoes of dissatisfied engineers who work for an ordinary chip manufacturer and have to build computer chips by hand. The circuits they have to design are more complex, starting with making the lights blink in a specific pattern.
The game’s interface is similar to the one you will find in browsers. Additionally, it teaches scripting. Screeps is another great example, which incorporates JavaScript code with massively multiplayer online gaming to build self-sustaining colonies. Both games excel in teaching fundamental concepts and slowly introducing new players.