A game that allows players to experience the process of software development is an excellent method of teaching programming and coding concepts like 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 manually. They are given increasingly complex circuits to design, starting with the making lights flash in https://mrworkspace.nl/2021/12/17/how-managed-workspace-sessions-can-benefit-your-business/ a certain pattern.
The interface of the game is similar to the one you will find in browsers. Additionally, it is a great way to teach scripting. Another great example is Screeps which combines JavaScript coding with massively multiplayer online games to create self-sustaining colonies. Both games do a fantastic job of teaching fundamental concepts while also slowly introduction of new ones.