A game that lets players to play with software development is an excellent way to teach coding and programming concepts 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 for an uninteresting chip company and have to design computer chips by hand. They are given increasingly challenging circuits to design. They begin with the making lights flash in a certain pattern.
The interface of the game is very similar to that you will find in browsers. Additionally, it is a great way to teach scripting. Screeps is a great example that is a game that combines JavaScript code with massively multiplayer online gaming in order to create self-sustaining colonies. Both games are excellent at teaching the basics https://mrworkspace.nl/2015/08/03/techedge-2011-presentations-and-videos/ of concepts and slowly introducing new players.