all checks start with weight 1 the chance that a check has an important item is proportional to its weight for each tag that a check matches, multiply its weight by that amount weights = { 'annoying': 5, 'basement': 2, 'bluecard': 2, 'boat': 5, 'cardkey': 2, 'coincase': 2, 'cut': 3, 'e4': 5, 'flash': 2, 'gym': 2, 'phone': 5, 'awfulpoke': 4, 'poke': 2, 'rocksmash': 2, 'strength': 2, 'surf': 3, 'tin': 2, 'whirl': 2, 'waterfall': 2, } tags = {'annoying': ['Hidden Machine Part', 'Secret Potion Man', 'Dance Theatre Surf HM', 'Elm Master Ball', 'Elm Aide Pokeballs', 'Janine TM', 'Flower Shop', 'Kenya Gate Item', 'Lake of Rage Hidden Power TM', 'Pryce TM', "Mr. Pokemon's EXP Share", 'Jasmine TM', 'Radio Tower Rockets Part 1', 'Route 15 PP Up', 'Cerulean City Hidden Berserk Gene', 'Tohjo Falls Moon Stone', 'Route 31 Kenya Item', 'Soft Sand Girls', 'Route 4 HP UP', 'Lake of Rage Big Magikarp Guy Elixer', 'Route 43 Sludge Bomb TM', 'Ruins of Alph Ho Oh Chamber 1', 'Ruins of Alph Ho Oh Chamber 2', 'Ruins of Alph Ho Oh Chamber 3', 'Ruins of Alph Ho Oh Chamber 4', 'Cianwood City Gym Badge', 'Mahogany Town Gym Badge', 'Fuchsia City Gym Badge', 'Route 29 Tuscany', 'Route 27 Bird Keeper Jose Star Piece', 'Copycat Rail Pass'], 'basement': ['Goldenrod Tunnel Smoke Ball', 'Goldenrod Tunnel Full Heal', 'Goldenrod Tunnel Hidden Max Potion', 'Goldenrod Tunnel Hidden Revive', 'Goldenrod Tunnel Max Ether', 'Goldenrod Tunnel Sleep Talk TM', 'Goldenrod Tunnel Ultra Ball', 'Goldenrod Tunnel Rocket Attack'], 'bluecard': ['Buena Shop Calcium', 'Buena Shop Carbos', 'Buena Shop Full Restore', 'Buena Shop HP Up', 'Buena Shop Iron', 'Buena Shop Nugget', 'Buena Shop Protein', 'Buena Shop Rare Candy', 'Buena Shop Ultra Ball'], 'boat': ['Vermilion Port Hidden Iron', 'Olivine Port Hidden Protein'], 'cardkey': ['Radio Tower Pink Bow', 'Radio Tower Sunny Day TM', 'Radio Tower Ultra Ball', 'Radio Tower Rockets Part 2', 'Route 34 Picknicker Gina Leaf Stone'], 'coincase': ['Celadon Game Corner Double Team TM', 'Celadon Game Corner Hyper Beam TM', 'Celadon Game Corner Psychic TM', 'Goldenrod Game Corner Blizzard TM', 'Goldenrod Game Corner Fire Blast TM', 'Goldenrod Game Corner Thunder TM'], 'cut': ['Lake of Rage Hidden Power TM', 'Lake Of Rage Elixer', 'Lake of Rage Detect TM', 'Lake of Rage Hidden Rare Candy', 'Lake of Rage Wesley', 'Route 12 Calcium', 'Route 12 Nugget', 'Route 15 PP Up', 'Violet City Prz Cure Berry'], 'e4': ['Elm SS Ticket', 'GS Ball', 'Route 30 Youngster Joey HP UP', 'Rainbow Wing Gift'], 'flash': ['Ruins of Alph Light Chamber 1', 'Ruins of Alph Light Chamber 2', 'Ruins of Alph Light Chamber 3', 'Ruins of Alph Light Chamber 4'], 'gym': ['Erika TM', 'Cianwood Fly HM', 'Chuck TM', 'Clair TM', 'Dragons Den Calcium', 'Dragons Den Dragon Fang', 'Dragons Den Hidden Max Elixer', 'Dragons Den Hidden Revive', 'Dragons Den Hidden Max Potion', 'Dragons Den Max Elixer', 'Morty TM', 'Janine TM', 'Pryce TM', 'Jasmine TM', 'Celadon City Gym Badge', 'Cerulean City Gym Badge', 'Cianwood City Gym Badge', 'Blackthorn City Gym Badge', 'Ecruteak City Gym Badge', 'Fuchsia City Gym Badge', 'Mahogany Town Gym Badge', 'Olivine City Gym Badge', 'Pewter City Gym Badge', 'Saffron City Gym Badge', 'Cinnabar Island Gym Badge', 'Vermilion City Gym Badge', 'Viridian City Gym Badge', 'Clair TM'], 'phone': ['Route 31 Bug Catcher Wade Berry', 'Route 34 Picknicker Gina Leaf Stone', 'Route 36 Schoolboy Alan Fire Stone', 'Route 38 Lass Dana Thunderstone', 'Route 42 Fisherman Tully', 'Route 44 Fisher Wilton Ball', 'Route 44 Bird Keeper Vance Carbos', 'Lighthouse Sailor Huey Protein', 'Route 27 Bird Keeper Jose Star Piece', 'Route 45 Parry Iron', 'Route 46 Picknicker Erin Calcium'], 'poke': ['Bills Grandpa Wants Growlithe', 'Bills Grandpa Wants Lickitung', 'Bills Grandpa Wants Oddish', 'Bills Grandpa Wants Pichu', 'Bills Grandpa Wants Staryu', 'Elm Everstone', 'National Park Pokefan Beverly Nugget', 'Route 39 Pokefan Derek Nugget', 'Lake of Rage Big Magikarp Guy Elixer', 'Route 43 Picknicker Tiffany Pink Bow', 'Ruins of Alph UnownDex'], 'awfulpoke': ['Bills Grandpa Wants Pichu', 'Lake of Rage Big Magikarp Guy Elixer', 'Ruins of Alph UnownDex'], 'rocksmash': ['Burned Tower Rock Smash Item', 'Cianwood City Hidden Max Ether', 'Cianwood City Hidden Revive', 'Dark Cave Violet Hidden Elixer', 'Dark Cave Violet Hyper Potion'], 'strength': ['Burned Tower Strength Item', 'Cianwood Fly HM', 'Chuck TM', 'Ruins of Alph Water Chamber 1', 'Ruins of Alph Water Chamber 2', 'Ruins of Alph Water Chamber 3', 'Ruins of Alph Water Chamber 4', "King's Rock Guy", 'Mt Mortar Inner Escape Rope', 'Mt Mortar Inner Hyper Potion', 'Mt Mortar Nugget', 'Mt Mortar Ultra Ball', 'Slowpoke Well Rain Dance TM'], 'surf': ['Mystic Water Man', 'Route 12 Hidden Elixer', 'Route 12 Nugget', 'Cerulean City Hidden Berserk Gene', 'Tohjo Falls Moon Stone', 'Soft Sand Girls', 'Union Cave Floor 3 Elixir', 'Union Cave Floor 3 Hyper Potion'], 'tin': ['Ruins of Alph Ho Oh Chamber 1', 'Ruins of Alph Ho Oh Chamber 2', 'Ruins of Alph Ho Oh Chamber 3', 'Ruins of Alph Ho Oh Chamber 4', 'Tin Tower Full Heal', 'Tin Tower Ultra Ball', 'Tin Tower PP Up', 'Tin Tower Escape Rope', 'Tin Tower Hidden Max Potion', 'Tin Tower Rare Candy', 'Tin Tower Hidden Carbos', 'Tin Tower Hidden Full Restore', 'Tin Tower Max Potion', 'Tin Tower Max Revive', 'Tin Tower Full Restore', 'Tin Tower Nugget', 'Tin Tower Max Elixer', 'Tin Tower HP Up'], 'whirl': ['Whirl Islands Escape Rope', 'Whirl Islands B2 Max Revive', 'Whirl Islands SW Ultra Ball', 'Whirl Islands Calcium', 'Whirl Islands Hidden Ultra Ball', 'Whirl Islands B2 Max Elixer', 'Whirl Islands B2 Full Restore', 'Whirl Islands B1 Full Restore', 'Whirl Islands Carbos', 'Whirl Islands Nugget', 'Whirl Islands Hidden Full Restore', 'Whirl Islands Hidden Rare Candy', 'Route 40 Hidden Hyper Potion', 'Whirl Islands NE Ultra Ball'], 'waterfall': ['Mt Mortar Max Potion Number 2', 'Mt Mortar Iron', 'Mt Mortar Max Revive', 'Mt Mortar Hidden Max Repel', 'Mt Mortar Hidden Max Revive', 'Mt Mortar Rare Candy', 'Mt Mortar Max Potion', 'Mt Mortar Defense Curl TM', 'Mt Mortar Dragon Scale', 'Mt Mortar Elixer', 'Mt Mortar Upper Escape Rope', 'Mt Mortar Hidden Full Restore']}