deane: (Default)
[personal profile] deane
[personal profile] matthewdaly recently turned me on to Manufactoria, an online game in which you ostensibly build factories for testing robots. In reality you're programming a Turing machine in which state is determined by position on the factory floor.

I'm quite enjoying the game, but it wasn't until after I'd already solved the first 28 levels that I discovered, while looking at someone else's solution, that you could make conveyor belts cross.

Good lord. That certainly makes things easier!

(no subject)

Date: 2010-06-13 03:44 pm (UTC)
From: [personal profile] matthewdaly
Heh. You can also reverse the red/blue branches by pressing space, which didn't strike me for a very long time.

Speaking of making things easier, I solved all the levels and then looked at someone else's solution to see how clever people popped a character off the back of a string. Which was, um, about a quarter of the size of the way I had been doing it. Then I cleared my levels and started again with that new knowledge. Wheeee!

(no subject)

Date: 2010-06-14 05:01 am (UTC)
From: [personal profile] matthewdaly
Yeah, that's the one that I learned about on the top. My original plan looked like this:



but it boils down to this which works well and might be a little faster than your second plan if you happen to not expect empty strings:



But that first design of yours was a game-changer for me.

At the end of the day, as much fun as the conveyor belts are, the way I'd really like to conceptualize the problem is as a standard FSM with writing rules so that there is no issue of the topology of how the arrows come out of the branches. For instance, here is the (partially flawed) design for Ophanim that I came up with and is far prettier than the Manufactoria machine that eventually came out of it:



It sounds like I'd have to write that game myself, though.

Profile

deane: (Default)
deane

April 2014

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27282930   
Progressive Bloggers

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags