A game that allows players to play with software development is a great way to introduce 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 disaffected engineers who work at an ordinary chip manufacturer and have to design computer chips by hand. They are presented with increasingly difficult circuits to design. They begin with making lights blink according to a certain pattern.
The interface in the game looks very similar to the tools for developers found in browsers and www.mrworkspace.nl/2020/05/04/workplace-management-ensure-that-a-companys-workstations-are-maintained-at-peak-performance/ also teaches scripting. Another great example is Screeps which combines JavaScript programming with massively multiplayer online gameplay to build self-sustaining colonies. Both games do a fantastic job of teaching basic concepts while slowly introduction of new ones.