Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanedwards/evolutionary-turtles
Logo-esque turtles that can reproduce and adapt to their changing environment. This code is here to demo my own work in the computer science program at the University of Maine, and may not be used in any way that would violate academic integrity policies.
https://github.com/seanedwards/evolutionary-turtles
Last synced: 3 days ago
JSON representation
Logo-esque turtles that can reproduce and adapt to their changing environment. This code is here to demo my own work in the computer science program at the University of Maine, and may not be used in any way that would violate academic integrity policies.
- Host: GitHub
- URL: https://github.com/seanedwards/evolutionary-turtles
- Owner: seanedwards
- License: mit
- Created: 2012-05-24T14:09:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T14:42:28.000Z (about 10 years ago)
- Last Synced: 2023-03-23T13:06:45.283Z (over 1 year ago)
- Language: Java
- Size: 172 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
RabbitTurtles implements a genetic algorithm to simulate a simple life form
("rabbit turtles") in a world of limited resources. The name of the project
comes from the name of the assignment, which was to adapt a Logo-esque turtles
library into a simulation of organisms ("rabbits") consuming food (grass) in
the turtle world.This project ignores most of the given assignment, and instead implements
a genetic algorithm for rabbit survival. Turtles wander randomly and consume
food at a constant rate. The selection function is starvation. When turtles have
sufficient excess energy, they reproduce asexually. A turtle's offspring
receives a mutation of its own genes, and a percentage of its own stored energy.A turtle's genome consists of the following genes:
- Appetite: The rate at which the turtle consumes food that it's standing on.
- Reproduction: The amount of energy required for the turtle to create an
offspring.- Reproduction Ratio: The percentage of the turtle's own energy that is given
to the offspring.- Speed: The turtle's rate of travel. Turtles always move at a constant speed.
- Lifetime: The maximum amount of time a turtle may live. When a turtle hits
its lifetime, it dies of "old age".