r/programminggames • u/TuXx1 • 2d ago
Ghost Commit: fix broken robots' code, then optimize it for gold. Free demo, 0.4.0
it's a programming puzzle game where people from a hot port town bring you their broken robots. a vacuum that chases the cat, an awning that opens halfway at noon, a wok that serves each customer the bowl of the one behind them
you read the code (python-ish), step through it, set breakpoints, watch it run in a little 3d diorama and fix it. passing the tests is bronze. silver and gold are for doing it in fewer ticks, and a card after each run shows which commands ate your ticks
demo is chapter 1, 11 robots, free in the browser or on windows/linux/mac (donation optional). solo dev, built with claude code
mostly want to know if the gold marks feel fair, and which robot you got stuck on
2
u/fthinteractive 2d ago
The graphics look really nice.
2
u/captcha_bot 2d ago
Well if I got gold on SHADE-2 the way it was intended, then I don't think the gold mark is fair at all to the customer. It's asking for 56 ticks across three days, each day should be checking the temp every half hour and adjusting the awning, which means at least 22 ticks just from looping every half hour. So the only way I figured you could get lower would be to take it out of the loop and code for each specific test case. I got to 55 ticks this way, but it is not a generalized solution that will work for any day's weather, only for the specific conditions of the test days and any coincidentally conforming days. Feel like a huge rip off to get paid extra for this crappy solution.
Maybe I just didn't consider a better way to do this, so please let me know if it's not true that the best solutions will be poorly coded sequential control flow scripts rather than elegant code that solves all cases.
1
u/AssignmentSad7160 1d ago
Distribute it through Steam so I know itβs safe
1
u/captcha_bot 18h ago
Okay after completing the demo, here is my feedback.
Overall I really like this game. Doing little fixes for robots is fun because there's a real-world impact and we can visually see the execution of the code. It's the same feeling as The Farmer Was Replaced, except you get to do more than just farming tasks, which is very cool. Music, graphics, ease of use was all good, no complaints really.
For the store and rent over-story, everything except the bench that lets you take on an extra client seemed unimportant. I bee-lined for the bench and then just bought everything else except coding helpers because I had plenty of cash (I thought). It would have been nice to know my clients were going to dry up after Wednesday, I spent my money assuming I'd get three customers every day, which would have been more than enough to pay rent on Friday (I was 34 credits short). All-in-all this part of the game didn't seem very meaningful, but it's kind of just background noise anyway.
For the meat of the game, I really liked all the different things you were able to let us make robots do. Some cases were stronger than others as far as clarity, but they were all charming in their way. The medaling was hit or miss for me. I felt like the ones I got gold on were easy and my first or second idea worked. Also one of them I beat gold by a tick (AIRE-12), so might want to look at that one.
Of the four I didn't get gold on, two were one tick away from gold and the other two were a few away. The ones I'm one tick away from, KITE and MARLIN-5, I truly don't see a way to save another tick and I spent a good amount of time pondering them. Perhaps there's a clever trick I'm missing, but they really seem too straightforward for any further refinement. That's fine, except the game doesn't show me the gold solution and there's no histogram showing my ticks vs other players, so it leaves a bad taste in my mouth because I can't be sure it's me that was wrong.
For the other silvers, SENTRY-2 and HIDRA-3, that bad feeling from the previous silvers I had spent time on made me not put too much effort into optimizing these ones. Especially HIDRA-3, which was the last case and was after I'd already failed to make rent the previous day, so motivation was low. At a glance I thought I saw ways to improve both, but didn't want to go through the effort.
In conclusion, I think it's a really fun game but I would make a small change to the medalling system. Instead of gold starting at the very fewest ticks possible, give a 10-15% buffer instead so 1-2 ticks away still gets gold, but show what the optimal solution's ticks are so the player is rewarded but still has aspirations for refinement. Ideally when you get a lot players you could have the histogram showing where we stack up against others' solutions.
Nice job on this, looking forward to the full release!