Blog Thoughts, notes, and documentation

Talk to my blog
Ask me anything about these posts — what I wrote, how something works, or where to find a topic. I match your question to relevant articles automatically in the background (the same search logic as before), so you can just ask in your own words — no separate search field.
← All posts

Nature of Code Final Idea

ITP
Nature of Code Final Idea


For my final I decided to continue my “Male Female” code by adding food, reproduction, and genetic algorithms. Here are some of the basic rules I am imagining:

  1. Male and Females are attracted to each other

  2. Sex drive makes them seek more

  3. Charm makes them be more successful in pairing up

  4. They eat

  5. The more they eat the slower they get

  6. If they don’t eat enough, they don’t make it to the mating area

  7. They can only mate in certain areas (migration)

  8. They only go to the migration areas when they are paired up

  9. Going to mating areas requires energy and makes them hungry

  10. If they get too hungry they give up on mating

  11. They need food to have enough energy to get the mating areas

  12. Some animals can hold more food than others

  13. Once they mate, they die

  14. Kids inherit the properties of the parents with a bit of mutation

Properties or DNA:

  1. Appetite vs. Sex drive
  2. Stomach size vs. Charm