| ||||||||||
They're agents/turtles, right? turn() and forward(). Mark Guzdial |
I don't think you need the time step.I'd just do act() in both. Mark Guzdial |
A heading in a turtle (as in a ship), is the direction it's currently facing. Facing due east is heading of 90. Mark Guzdial |
REMOVEDke Jim said. :-) Mark Guzdial |
Sort of random – move toward the right, moving a random speed. Mark Guzdial |
Don't know. Mark Guzdial |
Sure – that sounds like fun! Mark Guzdial |
Yes, just two windows should open Mark Guzdial |
Right – so do one OR the other. Mark Guzdial |
One pixel is probably too close. Try 5 or 10. Keep running until they reach the end – you don't have to stop at time 49. Mark Guzdial |
Make sure that you have a runner list different than the agents list. You want runners to respond differently to other runners vs. the bulls. Mark Guzdial |
Look at the error message. What line is it breaking on? What's going on on that line? (You did this in Python – you have to just look at the backtrace to figure out where the error is.) Mark Guzdial |
Just one is fine. Mark Guzdial |
Yup. Mark Guzdial |
You need to make sure that you do your mapping to the frame when the runner dies, or make sure that the dead/injured runner appears in a list that you make sure that you traverse to write out the bodies to the frame. Mark Guzdial |
What have you set myPict to be? Mark Guzdial |