A game that allows players to play with software development is an excellent method of teaching coding and programming concepts like loops and conditional statements. Games that can do this include Zachtronics Shenzhen I/O which puts players in the shoes of disaffected engineers working https://mrworkspace.nl/2013/11/01/the-foolproof-news-from-software-development-world-strategy/ for an uninteresting chip company and must build computer chips by hand. The circuits they are asked to create become more complicated beginning with making lights flash in a specific pattern.
The interface in the game is very similar to web browser’s developer tools and also teaches scripting. Screeps is a great example that incorporates JavaScript code with massively multi-player online gaming to build self sustaining colonies. Both games do an excellent job of teaching basic concepts while gradually introduce new ones.