Develop a web application using python to help clients visualize the distribution of items in the randomly generated maps of "A Link To the Past Randomizer"
- Dataset of 100k+ randomly generated game seeds
- Python Web application
- Interactive map of the game with major item regions circled
- Visualization of item distribution of selected region
- Visualization of location distribution of selected item
This project was set to be completed in two weeks. Conseqeuntly , focus was on producing raw working versions of the deliverables that could be improved upon once in production.
Members: Jason, Merari, Dinh
Analysis of the distribution of items in The Legend of Zelda: a Link to the Past VeeTorp Randomizer
-
Create a Postgres Database named
alttpr
-
Create a file login.py with two entries:
-
postgres_username
-
postgres_password
-
Once you run locations.py there should be a new table in the alttpr
database named location-metadata
with 68 rows of data containing columns for seed_guid
, map
, x
and y
at a minumum
No longer used by app.py. Instead app.py serves the region/location information from regions.json: a hand stitched restructure of the former location-metadata
database
To run: Import or execute the data.py script in an interactive python terminal and then use the loadSample()
function to test the database writing, or loadAllData(folderpath)
to load files in bulk.
Can be run either via python app.py
or via flask run
.
-
/viz1
returns json describing the pins to be drawn on the map and the item locations that those pins represent -
/playthrough/<seed_guid>
returns a json representation of a sample playthrough guaranteed to be able to beat the given seed -
/regions
given POST request: returns the counts of items found at any of the locations in the list given in the request -
/items/<item_name>
returns a count of how often that item appears at each location -
/viz4
dummy route to eventually serveseed_guid
values for use in a dropdown to pair with the/playthrough/<seed_guid>
route