Cargo-Bot, shortest solutions

I finally got Fill the Blanks in 11 registers!
http://www.youtube.com/watch?v=UW8QZIpF4H8

Prog 3 moves a stack to the right, except for the last crate.
Prog 2 moves to the right, runs Prog 3, then puts the last crate down.

Note the trick that if Prog 3 is run when holding a crate, it will first put it down on the top of the stack and then pick it up again.

Here’s a 17 register solution for Multi Sort 2:
http://www.youtube.com/watch?v=zZadGGKn77s

Congrats cihana, I assumed it is possible.

Win some, lose some: Palette Swap @ 14 regs: http://www.youtube.com/watch?v=N4o4ydOVJls

  • I have Restoring Order @15 … a cracking new idea, will post video later :slight_smile:

Restoring Order, 15 regs: http://www.youtube.com/watch?v=83-Z2UvareY

@acherico, you’re crushing them. That’s some serious code reuse in restoring order :slight_smile:

have you done all levels?

I see I’m completely blown out of the water now. Ah well, it was fun while it lasted! Back to real programming, then.

I think I have done all the levels, but I think I cannot beat any of the shortest solutions.

@atrophic That’s to bad. I came up with my solution on April 26th in the morning, but unfortunately I can not prove it :frowning:

*I’m a muppet, wrong level, please disregard *

I’m sure someone else must have this too but it still says 9 above.

Tutorial 6 - Go Left in 4

http://www.youtube.com/watch?v=4_s798K1Qnk

I don’t have the conditionals available in my toolbox for that one. How did you get them?

That’s go left 2

Well of course it is. Silly me. It was described as the one in the tutorials, so that is where I looked. :frowning:

Oops, you are of course correct.

Please ignore me. :slight_smile:

It would be easier to record and upload if he video had the level name in it.

yeah the level name is a good idea

Even the Odds - 10 registers

http://youtu.be/Ym18OA4uBLI

Here are my solutions to the four bonus puzzles, two of which are better than the ‘known’ solution:

Count in Binary, in 16 registers (better than known solution)

http://www.youtube.com/watch?v=kHdij_LZMJM

Search recursively for an empty spot, and fill it. Then, clear every spot on the way back. Prog 2 will increment the counter by one. Note that Prog 4 serves two purposes; it will either clear the current column or it will bring one crate from the left.

Equalizer, in 17 registers (better than known solution)

http://www.youtube.com/watch?v=-MFMqKRjhNY

Start by pushing the current column to the right (Prog 3), then recursively search for a crate and bring it back (Prog 2), twice. Then continue on the next column.

Parting the Sea, in 17 registers (equal to known solution)

http://www.youtube.com/watch?v=Oe3PzoH04c0

Start in the center. Recursively search right for a crate, and move it to the right by one column (Prog 2). Do the same, but to the left (Prog 3). Repeat.

The Trick, in 11 registers (equal to known solution)

http://www.youtube.com/watch?v=0JR4pjrCWwI

Move one crate from each side to the center and repeat, except don’t put the last crate down. Then, move one crate from the center to each side, and repeat.

qqq I really love your solutions to count in binary and equalizer - I’m specially glad that you went for general solutions rather than hacks

For count in binary my solution was to bring a fresh new block from the first pile each time, but your idea of taking the last block and moving one spot forward is much cleaner

Your equalizer only works if the final state has two blocks per pile. It’s still a very smart solution

I think we really need a level editor and a way to share levels - you are very good at cargo bot and I can’t wait to see what challenges you’d come up with

Thanks! I’d love to try my hand at it.

Yes, the equalizer has the height of two hard coded. I haven’t looked for a general solution!

How to access the bonus puzzles?