Skip to content

dark-nova/turnip_map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turnip Map

Overview

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.

Usage

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])

Requirements

This code is designed around the following:

  • Python 3+

Credits

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.

Disclaimer

This project is not affiliated with or endorsed by Nintendo. See LICENSE for more detail.

Releases

No releases published

Packages

No packages published

Languages