A game that allows players to experience software development is an excellent way to teach programming and coding concepts like loops and conditional statements. Games that allow this include Zachtronics Shenzhen I/O which puts players in the shoes of disaffected engineers who work for an ordinary chip manufacturer and have to design computer chips by hand. The circuits they have to create become more complicated beginning with making the lights flash in a certain pattern.
The interface of the game is very similar to developer tools found in browsers and also teaches scripting. Screeps is another great example, which is a game that combines JavaScript code with massively multi-player online gaming in order to create self-sustaining colonies. Both games are excellent in teaching fundamental concepts and slowly introducing other players.
https://mrworkspace.nl/2016/03/16/windows-7-iops-for-vdi-deep-dive/