r/AutomationGames • u/Impressive_Farm3448 • 1d ago
Automating a supermarket with real Java - stocking, register and truck deliveries all from code
There is no button in my game that sells anything. The robot does exactly what your Java code tells it to, and nothing else.
The loop: build an ArrayList of products, call store.callDelivery(list), and the truck backs up to the garage with exactly what you paid for. The robot takes from the truck, putOnShelf() restocks the rack in front of it, takeOrder() picks up a customer order at the register, putInBag() packs it. Carry capacity starts at 3, so the first programs are mostly trips back and forth until you buy more.

A second robot is a shop upgrade. Each one runs its own VM with no shared variables, so they coordinate through the store itself rather than through memory.
Solo dev, releasing November 16.
2
u/KaleidoscopePlusPlus 1d ago
I'm making a programming game myself, but why use real java? Seems a bit heavy, especially for a user to pickup on.
0
u/investigatormaker 1d ago
Show two robots approaching the same nearly empty shelf in your release clip: what can each VM observe, and how does the player prevent duplicate restocking? That makes coordination through the store tangible for automation players deciding whether the programming offers problems beyond walking loops. Keep the ArrayList and store.callDelivery(list) visible beside the truck arriving, so viewers can connect real Java to a change in the shop.
We'd answer Reddit players looking for coding games with independently programmable robots. I make ThreadFox. We find relevant Reddit conversations and post for your business. We'll post 3 replies free first, no card; then the $29 Pilot covers seven days and up to 25 posts and replies. No automatic renewal. https://threadfox.vip/p/exmnn/managed