Skip to content

guidosalva/universe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Animal use case ==

= Simplified Animal rules = - Elements on a board, integer positions (x, y) - Elements move, one field at a time (tick) - Only one element per field allowed - Plant - has energy - grows over time - germinates area around it spawning new plants - Animal - can be herbivore or carnivore - can be male or female - can move, eat, age, die, procreate, give birth - actions drain or give energy - AI: go to the nearest food target in radius and eat it - Carnivore / Herbivore subclasses of Animal carnivore eats herbivores, can sleep herbivore eats plants - Male / Female subclasses of Animal with different behaviour male seeks mate female gives birth to child animals - Default setup: - spawn a new plant every day - spawn a new animal every week

= Reimplementation Goals = - simplified version (reduced rules) - easier to read - less imperative, more functional, more object-oriented - lines-of-code stats should illustrate: Signals >= Events > Observers

About

The Universe simulation based on reactive programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published