https://github.com/dranidis/animal-farm
An example simulating a farm of animals using design patterns.
https://github.com/dranidis/animal-farm
design-patterns java simulation-framework
Last synced: 23 days ago
JSON representation
An example simulating a farm of animals using design patterns.
- Host: GitHub
- URL: https://github.com/dranidis/animal-farm
- Owner: dranidis
- Created: 2019-12-16T09:33:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T18:17:06.000Z (over 5 years ago)
- Last Synced: 2023-12-16T15:17:03.491Z (about 2 years ago)
- Topics: design-patterns, java, simulation-framework
- Language: Java
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/dranidis/animal-farm/actions)
# animal-farm
An example simulating a farm of animals using design patterns.
Currently implementing the following design patterns:
* Template
* State
## Already implemented
* Instead of simulating a whole day in a method, break the method so that it simulates a single step and then returns. Each step could be an hour and the method could be called simulateStep.
* Maybe use the State pattern for the simulatestep (that's something we did not see but it is not so difficult)
## Ideas for expansion
* Create other animals with different behaviour
* Create the animals via an Abstract Factory
* Having more than one animal in the farm...
* Animals interacting?
* Other creatures in the farm, ...
* Other entities in the farm, ...