A game that allows players to play with software development is an https://mrworkspace.nl/2010/05/11/the-news-from-software-development-world-game/ excellent method of teaching coding concepts and programming features, like loops and conditional statements. Games that do this include Zachtronics’ Shenzhen I/O, which puts players in the shoes of dissatisfied engineers who work at an uninteresting chip maker and have to build computer chips by hand. They are provided with increasingly challenging circuits to design, starting with the making lights flash according to a certain pattern.
The interface in the game looks very similar to the web browser’s developer tools and teaches scripting. Another great example is Screeps, which blends JavaScript coding with massively multiplayer online gameplay to build self-sustaining colonies. Both games do a wonderful job of teaching basic concepts while slowly introducing new ones.