is (in this case) a name of a little game prototype, where it is impossible to cheat...
As you use console all the time to reshape the game anyway. 😀
[MIT licensed source code] https://github.com/nickworks/ConsoleGame/blob/master/LICENSE
There is actually whole genre where you edit code in-game, which is called, well, source code.
[games with similar mechanics] https://itch.io/games/tag-sourcecode
Didn’t have time to try it, but if you want something more polished then GPL licensed Liberation Circuit where you “take command directly and play the game as an RTS, or use the game's built-in editor and compiler to write your own unit AI in a simplified version of C!” might be a good choice.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.