ASTON HACK 2016
Geese themed hackathon!
Travis CI Status
Fragile/Swarming Geese Simulator, is a Python program that "simulates" the behaviour of geese (a common theme around Birmingham). The main idea was to create the activity history of groups and individual geese and then plot their actions on a map (using Google Maps API). The history is stored using the crate.io database.
How to run the program.
This will start a custom "shell" that allows you to call some of the main functions of the program. You can also use RAW Python if you wish.
Inside the "shell" you can run:
jimmy = createGoose()
This will start a "wizzard" to help you define Jimmy, you can either use random data or custom data.
jimmy = createGoose() Use random data? (y/n) ---> y >_
Now we have a random goose in 'jimmy'.
print jimmy 89e129f6 >_
Printing 'jimmy' like that will return the hashid.
If we were to choose custom data for 'jimmy', the setup would look like this:
>_ jimmy = createGoose() Use random data? (y/n) ---> n name ---> Jimmy age (d) ---> 600 span (d) ---> 600 health ---> 200 hunger ---> 300 X: 90 Y: 80 gender ---> 2 range ---> 55 >_
Creating a clan.
>_ someclan = createClan(50,0,2) # 50 is the number of geese. # 0 is the X coordinate. # 2 is the Y coordinate.
Simulating a clan.
>_ start(someclan) # After this you are prompted to give a date. # Then hell breaks loose!!! # Some geese die, some are born, overall they win!
For more information on what the program can do, look at the functions defined inside source/geesemanager.py
The program tries to connect to a crate.io database, so make sure you have one running
crate/crate # Linux/Mac
and when asked provide the ip and port:
# Should work on most machines! ip: localhost port: 4200
After this, Python connects to the database and stores data about the geese! AMAZING!