Zorba the Hutt (zorbathut) wrote,
Zorba the Hutt

algorithm psuedocode

start position: find open space with wall on right of start. set that as direction.
cycle: move in direction. test space to right of direction - if empty, turn right. otherwise, test space in front - if full, turn left, then do it again.
once you get back to origin, kill all humans.
end of line.

(yes, this is exactly how I write algorithms when I'm playing with them :P)

(bonus points if you can figure out what this algorithm does.)

(besides killing all humans, that is.)
  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.