Ari encounter some problems programming dominance. When a higher rank robot collided we'll call "1" with a lower ranked robot we'll call that one "2." 2 would attempt to move away via random motion but 1 would continue on its path to fast thus continuously colliding with 2. Sometimes pushing 2 all the way across the page. Thus we needed to find a way to fix this. We had two options,
1) Control and the rate of movement for the 1after collision, which we decided was a horrible idea in terms increasing the amount of code needed
2) Freeze the higher robot for a couple of milliseconds giving the other robot time to move away, WINNER!
In order to Freeze the robots we had to find a way to keep track of collisions in terms of rank, thus we created a new array to hold these values and had a loop that would check if a robot was the highest rank and then have it freeze for a couple of miliseconds and continue on its path. Were still working on the debugging the program hopefully we can have it done by next week.
While David and Arie worked on debugging Weights (Dominace), I worked on creating different simulations to demonstrate on the webpage. I found out when you minimize the size of the robot to 1 or 2 pixels and increased the amount of robots to the hundreds. It appears to be like stars moving across a night sky. I'm currently working on creating a simulation having the robots move in a pattern of some sort too.
Early last week, David figured out how to have the randomMotion program loop again and again and even put a timer keeping track of the total time required to complete a simulation. We decided were not going to post anymore simulations in order to save a little for the website. Once we get more done we hope to have the website up and running sometime soon.