shitty bot game
A collaboration with https://ellennyan.itch.io/.
Control robots which do not have enough memory to fulfill their tasks. The idea was that you can see robots without that restriction solving the task in the intended way, therefore having an "unfair advantage"
Controls via mouse and keyboard. The possible instructions are
- halt: stops execution of the program
- walk: takes `n` steps forward, where `n` is the value of the next cell
- turn around|left|right: changes the direction the robot is facing
- skip: does nothing and then executes the next instruction
- goto: jumps to the address written in the next cell
- if not? box|wall|edge: jumps to the address written in the next cell if the condition is true, all conditions only look directly in front of the bot.
source code: https://github.com/lcnr/shitty-bot-game
Comments
Log in with itch.io to leave a comment.
Dang, I feel like I was just getting into the swing of things and got hit by
thread 'main' panicked at 'index out of bounds: the len is 32 but the index is 32', src/ui/programming.rs:182:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
when I pressed tab after editing the last instruction.
Having fun though.
yeah, fixed that one '^^ two uses of `idx + 1 % 32` and only fixed one of them