turnips.yaml contains a mapping of all turnip price sequences, organized by patterns (1st level keys), buy price per pattern (2nd level keys), and all sequences of minimums and maximums per day and phase (e.g. Monday AM) of that price.
Run turnips.py to generate the file.
To access the sequences in Python, try this:
import yaml
with open('turnips.yaml', 'r') as f:
turnips = yaml.safe_load(f)
# This should print the 2nd sequence (0 index, "[1]") in
# pattern 0 (fluctuating, "[0]") with a buy price of 90 Bells.
print(turnips[0][90][1])
This code is designed around the following:
- Python 3+
Credits to Ninji for the gist that led to this mapping. Credits also to mikebryant for https://turnipprophet.io/index.html (GitHub) for inspiration and referencing Ninji's tweet.
This project is not affiliated with or endorsed by Nintendo. See LICENSE for more detail.