A game that allows players to experience software development could be an excellent way to introduce programming concepts and coding concepts, such as loops and conditional statement. Games that can do this include Zachtronics Shenzhen I/O which puts players in the shoes of disaffected engineers working for an uninteresting chip company and have to design computer chips by hand. The circuits they are asked to create become more complicated beginning with making lights flash in a certain pattern.
The interface of the game is similar to the one you will find in browsers. Additionally, it also teaches scripting. Another excellent example is Screeps which blends JavaScript programming Clicking Here with massively multiplayer online games to build self-sustaining colonies. Both games do a great job of teaching fundamental concepts while slowly introduce new ones.