Simulating Life

Just another UMass Boston Blogs site

Mabel’s Code Review

| 1 Comment

Mabel’s current issue: after following *ehm* your (Brian’s) comments on the midterm, my algae has reverted back to bouncing around when the boat nears, rather than the “natural” float away and slow down. I’ve played around with the forward instructions but I’m not sure where the bouncing around comes from. Help please 🙂

One Comment

  1. hmmm…
    you can replace the “if I’m lime green”/”if I’m not lime green” with
    if I’m lime green do one thing ELSE do the other thing – since the two cases are mutually exclusive

    I’m not sure why they’re bouncing around
    the only thing I see is that you look for boats within 10 but then set heading within 5

Leave a Reply

Required fields are marked *.


Skip to toolbar