A game that lets players experience the process of software development can be a great way to teach programming concepts and concepts in coding like loops and conditional statement. Games that do this include Zachtronics Shenzhen I/O which puts players in the shoes of disaffected engineers working for an uninteresting chip maker and must build computer chips by hand. The circuits they have to design get more difficult beginning with making the lights blink in a specific pattern.
The interface in the game looks very similar to developer tools found in browsers and teaches scripting. Screeps is a different excellent example that combines JavaScript code with massively multi-player online gaming to build self-sustaining colonies. Both games do a wonderful job of teaching basic concepts while slowly introduction of new ones.
https://mrworkspace.nl/2021/12/17/how-managed-workspace-sessions-can-benefit-your-business/
