# Polyworld

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Polyworld
> Markdown URL: https://mediated.wiki/source/Polyworld.md
> Source: https://en.wikipedia.org/wiki/Polyworld
> Source revision: 1341365646
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|AI life simulation using evolutionary algorithms}}
{{Multiple issues|
{{No footnotes|date=June 2022}}
{{More citations needed|date=September 2024}}
}}
{{Infobox software
| name = 
| logo = <!-- Image name is enough. -->
| logo alt = 
| logo caption = 
| screenshot = Polyworld.gif
| screenshot size = 300px
| screenshot alt = 
| caption = Polyworld Screenshot, 1994
| collapsible = <!-- Any text here will collapse the screenshot. -->
| author = 
| developer = 
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| discontinued = <!-- Set to yes if software is discontinued, otherwise omit. -->
| ver layout = <!-- simple (default) or stacked -->
| latest release version = 2.6
| latest release date = Feb 2015 <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest preview version = 
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| repo = <!-- {{URL|example.org}} -->
| programming language = [C++](/source/C%2B%2B), [Python](/source/Python_(programming_language))
| engine = <!-- or engines -->
| operating system = 
| platform = 
| included with = 
| size = 
| language = 
| language count = <!-- Number only -->
| language footnote = 
| genre = 
| license = [Apple Public Source License](/source/Apple_Public_Source_License)
| alexa = 
| website = <!-- {{URL|example.org}} -->
| standard = 
| AsOf = 
}}
'''Polyworld''' is a cross-platform ([Linux](/source/Linux), [Mac OS X](/source/Mac_OS_X)) program written by [Larry Yaeger](/source/Larry_Yaeger) to evolve [Artificial Intelligence](/source/Artificial_Intelligence) through [natural selection](/source/natural_selection) and [evolutionary algorithm](/source/evolutionary_algorithm)s. 

It uses the [Qt](/source/Qt_(toolkit)) graphics toolkit and [OpenGL](/source/OpenGL) to display a graphical environment in which a population of trapezoid agents search for food, mate, have offspring, and prey on each other. The population is typically only in the hundreds, as each individual is rather complex and the environment consumes considerable computer resources. The graphical environment is necessary since the individuals actually move around the 2-D [plane](/source/Plane_(mathematics)) and must be able to "see." Since some basic abilities, like eating carcasses or randomly generated food, seeing other individuals, mating or fighting with them, etc., are possible, a number of interesting behaviours have been observed to spontaneously arise after prolonged evolution, such as cannibalism, predators and prey, and mimicry.

Each individual makes decisions based on a [neural net](/source/neural_net) using [Hebbian learning](/source/Hebbian_learning); the neural net is derived from each individual's genome. The genome does not merely specify the wiring of the neural nets, but also determines their size, speed, color, [mutation rate](/source/mutation_rate) and a number of other factors. The [genome](/source/genome) is randomly mutated at a set probability, which are also changed in descendant organisms.<ref>{{Cite web |last=Yaeger |first=Larry |title=Yeager: Computational Genetics, Physiology, Metabolism, Neural Systems, Learning, Vision, and Behavior |url=https://shinyverse.org/larryy/Yaeger.ALife3.pdf |access-date=July 26, 2024 |website=}}</ref>

==References==
{{reflist}}

==External links==
*[https://github.com/polyworld/polyworld Github entry]
*[https://shinyverse.org/larryy/Polyworld.html Yaeger's page on Polyworld]
*[https://www.youtube.com/watch?v=_m97_kL4ox0 Google TechTalk about Polyworld]

Category:Applications of artificial intelligence
Category:Artificial life
Category:Digital organisms

{{science-software-stub}}

---
Adapted from the Wikipedia article [Polyworld](https://en.wikipedia.org/wiki/Polyworld) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Polyworld?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
