Screeps comes to mind, if JavaScript is okay. Human Resource Machine is lower level but useful for teaching basic concepts.
Good though they are, I would not recommend any of the Zachtronics games since they are focused on being coding puzzles, not teaching.