Serendip is an independent site partnering with faculty at multiple colleges and universities around the world. Happy exploring!

Reply to comment

kdilliplan's picture

Another Update

I'm still pretty much on track with my model.  I've determined that there should only be one reproduction each time two turtles are on the same patch, since each turtle moves forward one patch, checks to see if another turtle is there, and reproduces if there is.  Then the next turtle does the same, so the second turtle would move before checking if they can mate.  My problem now is writing code that identifies characteristics of the turtle that moves and the turtle already on the patch.  I am trying a system similar to the Cellular Automata setup, where a patch's color depended on the patch and it's two neighbors.  Here, the offspring's color will depend on the color of its parents.  Can anyone help me sort through the code that can help me do this?  I've figured out a way to randomize the alleles of the heterozygote turtles (I think) so now I just need a way to distinguish between the two turtles on the patch.

Reply

To prevent automated spam submissions leave this field empty.
9 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.