[Need help] Langton's ants script

  • archived_account
    17th Dec 2018 Member 0 Permalink

    Script - https://pastebin.com/ta6ANgaX

     

    I just stuck, the script creating wall or road instead of ants logic. I dont understand where i did a mistake: state testing, state changing, cycling... Can you find where i made a mistake?

     

    Rules of this automatica (wiki): At a white square, turn 90° right, flip the color of the square, move forward one unit, at a black square, turn 90° left, flip the color of the square, move forward one unit

  • Matera_the_Mad
    21st Jan 2019 Member 0 Permalink

    Hallo. I started messing with it a while back, but still have only the vaguest clues what's wrong. Today, I picked it up again and tried some things that I thought might help analyze it, but wound up being sidetracked into a weird modification of it.

     

    Anyway, I just put it in Pastebin, in case you would like to amuse yourself with it.

     

    Langton's Ent:

    https://pastebin.com/eQ0CraNZ

     

    I don't think it helps the original problem, but it's good for a laugh.

     

    P.S.

    An example

    id:2376933

     

    Ent grows upwards, so alwayse start at bottom.

    Edited once by Matera_the_Mad. Last: 21st Jan 2019
  • Matera_the_Mad
    13th Mar 2019 Member 0 Permalink

    Helllooooooooo.......

     

    I am getting some insight into the problem, close to seeing what to do. Am I talking to air?

     

    Having fun with the variations. They give me ideas.