Awesome
wolves-and-rabbits-world-simulation-ui
Description
This is an UI for a server implementation from an assignment described by Francessco Cessarini here.
A textual description:
We had to implement a simulated world inhabited by carrots, rabbits, and wolves. Rabbits would roam this world eating carrots that grew in random patches. When they had eaten enough carrots, the rabbits would get fat and split in two. Wolves ran around eating up the rabbits; if they managed to catch and eat enough rabbits, they would also get fat and split. Rabbits and wolves within a certain distance of each other would broadcast information on food and predators. If a rabbit found a carrot patch, other rabbits would quickly join him. If a wolf found a rabbit, the pack would start chasing it.
UI
How to build and run it locally?
mix phoenix.server
Deployment on Heroku
heroku login
heroku create
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
heroku config:set HEROKU_APP_NAME=$(heroku apps:info | grep === | cut -d' ' -f2)
heroku config:add DATADOG_API_KEY=<YOUR-API-KEY>
git push heroku master
heroku ps:scale web=1
heroku open
Assets
Graphics
All sprites were made by me.
Favicon is available here.
Music
Music is created by Eric Skiff and provided also on Creative Commons Attribution license.