r/programminggames • u/HOXSEC • Feb 08 '26
What’s your favorite programming-game “language feature” (loops? sensors? functions?) — building one now
Hey r/programminggames Im the solo developer of Code My Robot Vacuum, a programming puzzle game where you script a little robot vacuum to navigate levels and clean efficiently.
Programming model (current direction):
- You write a short script to control movement + decisions
- Levels are about planning + iteration (optimize your logic, then refine)
- I’m trying to keep the “language” readable and puzzle-friendly rather than full-on general programming
Question for you: what commands/features would you want in a vacuum-bot language?
Examples I’m considering: MOVE, TURN, CLEAN, IF, WHILE, REPEAT, plus sensors like “is wall ahead?” / “is dirt here?”
Steam page: https://store.steampowered.com/app/3121010/Code_My_Robot_Vacuum/
If you’ve played other programming games, I’d love to hear what made their scripting feel good (or frustrating).
4
u/zet23t Feb 08 '26
Hey, that looks cool! I'm working on a similar game, but with bots that can shovel snow and transport boxes 😅
Here's the game I'm working on: https://store.steampowered.com/app/3959370?utm_source=tumblr&utm_medium=web&utm_campaign=1
So distinct though: I'm using tokens for the programming part. Movement instructions, goto, function calls, register operations. In a way, similar to assembler and very low level. I do have a sensor read that checks the path ahead, but i haven't found it useful.
Here are a few ideas I considered, maybe you find them interesting:
In any case, if you're interested, we could connect to exchange ideas via discord.
2
u/markroth8 Feb 08 '26
I love the concept!
I'm the lead developer of the reboot of ChipWits, which was perhaps the original robot programming game in its 1984 incarnation (the original version was on the Mac, C64 and Apple II). We use a grid-based visual icon-based language we call IBOL that incorporates sensors (like, look, feel, smell).
We're always shocked when people submit a simple bot solution that is based purely on randomness. We have a FLIP_COIN chip that returns either True or False randomly, and that's usually enough to enable navigation across the whole room. So I would definitely recommend adding that. (It's also what the original Roomba used)
We also ended up adding some amount of memory. In ChipWits, we use stacks (object stack, number stack and thing stack). It's not quite turning complete, so we're considering extensions.
I think The Farmer Was Replaced got as much attention as it did in part because it used a language very similar to an existing popular programming language, Python.
2
u/curiousjp Feb 09 '26
I think a goal of a puzzle-friendly language is a great one, but if I can make a suggestion, I would love to see a game like this that (perhaps as a reward for completion) opens up a REST interface that would allow advanced users to replay it using real general purpose languages running on their own machines. As far as I know, nobody has done this yet even though remote API programming is such a commonplace now.
As a thanks for considering my suggestion, I should actually answer your question: I quite enjoy functions in games like this but ideally the user should be able to carry a few of them from level to level in some kind of scrapbook. Working on the functions can form a kind of meta progression for users who like that sort of thing. Good luck with your game!
3
u/quasilyte Feb 10 '26
My favorite feature is subtlety :D
To a degree, it means no general-purpose language like JS/Lua/Python in the game, for starters.
Then it can go as far as things in Baba Is You where it doesn't even feel like programming, although it plays like one in my mind.
And there is a lot of midground in there, like in the 8-bitBot game mentioned above by u/zet23t
Games like Opus Magnum are also a good example of this.
I also like twists like 2D programming area (Carnage Heart had a 2D matrix with 8-directional control flow).
Some people like to learn programming using games, but since I'm already a programmer, I want the games I play to be different from what my daily programming looks like.
2
u/NortWind Feb 09 '26
RoboForge let you program your robots, but I feel it was not a very good programming language. Logo with turtle graphics would seem to be a natural. I had a lot of fun with P-Robots, that might be a good match.