A game that allows players to experience the process of software development can be an excellent way to introduce programming concepts and coding techniques, including loops and conditional statements. Zachtronics Shenzhen I/O is one game that accomplishes this. It puts players in the shoes unhappy engineers working for a non-existent company and must build computer chips by hand. They are provided with increasingly challenging circuits to design, beginning with making lights blink in a certain pattern.
The game’s interface appears very similar to tools for developers found in browsers and also teaches scripting. Screeps is a great example, which incorporates JavaScript code with massively multi-player online gameplay to build self sustaining colonies. Both games do a fantastic job of teaching the basics while also slowly introducing new ones.
https://mrworkspace.nl/2021/12/17/the-advantages-of-a-workspace-management-forum/