A game that lets players to play with software development is an excellent way to introduce coding and programming concepts like loops and conditional statements. Games that accomplish this include Zachtronics Shenzhen I/O which puts players in the shoes of disaffected engineers www.mrworkspace.nl/2016/03/16/windows-7-iops-for-vdi-deep-dive/ who work for a drab chip company and must build computer chips by hand. They are given increasingly challenging circuits to design, beginning with making lights flash according to a certain pattern.
The interface of the game is similar to the one you see in browsers, and it teaches scripting. Screeps is another great example, which combines JavaScript code with massively multiplayer online gaming to build self sustaining colonies. Both games excel at teaching basic concepts, and slowly introducing other players.