Created
July 3, 2018 11:37
-
-
Save gregoriobenatti/a98e46d5eab7b548fc46b6fdeb44e8e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
dictA = {"Accumulated Knowledge": 4, "Ancient Grudge": 1, "Annul": 4, "Ash Barrens": 4, "Atog": 4, "Augur of Bolas": 4, "Birchlore Rangers": 4, "Brainstorm": 2, "Burning-Tree Emissary": 4, "Capsize": 1, "Carapace Forger": 4, "Chain Lightning": 4, "Chainer's Edict": 3, "Chittering Rats": 4, "Chromatic Star": 4, "Circle of Protection: Blue": 2, "Circle of Protection: Red": 2, "Compulsive Research": 2, "Condescend": 1, "Counterspell": 4, "Curse of the Pierced Heart": 4, "Darksteel Citadel": 4, "Daze": 3, "Deep Analysis": 2, "Delver of Secrets / Insectile Aberration": 4, "Deprive": 2, "Devour Flesh": 2, "Dimir Aqueduct": 3, "Disfigure": 4, "Dismal Backwater": 4, "Dispel": 4, "Distant Melody": 2, "Doom Blade": 3, "Duress": 2, "Echoing Decay": 2, "Electrickery": 4, "Elephant Guide": 4, "Elvish Mystic": 2, "Elvish Vanguard": 2, "Epic Confrontation": 4, "Essence Warden": 2, "Evincar's Justice": 2, "Evolving Wilds": 4, "Expedition Map": 3, "Faerie Miscreant": 4, "Feed the Clan": 2, "Fireblast": 4, "Firebolt": 4, "Flame Rift": 3, "Flame Slash": 4, "Flayer Husk": 3, "Fling": 2, "Flurry of Horns": 4, "Forbidden Alchemy": 3, "Frogmite": 4, "Fyndhorn Elves": 2, "Galvanic Blast": 4, "Gearseeker Serpent": 1, "Ghitu Lavarunner": 4, "Ghostly Flicker": 2, "Gitaxian Probe": 4, "Gleeful Sabotage": 3, "Gorilla Shaman": 2, "Great Furnace": 4, "Gurmag Angler": 4, "Gush": 4, "Gut Shot": 4, "Hunger of the Howlpack": 4, "Hydroblast": 4, "Ichor Wellspring": 2, "Krark-Clan Shaman": 2, "Lava Spike": 4, "Lead the Stampede": 4, "Lightning Bolt": 4, "Llanowar Elves": 3, | |
"Luminescent Rain": 2, "Lys Alana Huntmaster": 4, "Martyr of Ashes": 4, "Massive Raid": 1, "Metallic Rebuke": 1, "Mnemonic Wall": 3, "Molten Rain": 3, "Moment's Peace": 4, "Mulldrifter": 4, "Mutagenic Growth": 3, "Myr Enforcer": 4, "Mystical Teachings": 2, "Natural State": 4, "Needle Drop": 4, "Nest Invader": 4, "Nettle Sentinel": 4, "Nihil Spellbomb": 2, "Ninja of the Deep Hours": 4, "Pieces of the Puzzle": 4, "Piracy Charm": 2, "Ponder": 4, "Preordain": 4, "Priest of Titania": 4, "Probe": 1, "Prohibit": 1, "Prophetic Prism": 4, "Pulse of Murasa": 1, "Pyroblast": 4, "Quicksand": 1, "Quirion Ranger": 4, "Rancor": 4, "Recoil": 2, "Relic of Progenitus": 3, "Remote Isle": 1, "Rift Bolt": 4, "River Boa": 2, "Scattershot Archer": 4, "Sea Gate Oracle": 4, "Seal of Fire": 3, "Searing Blaze": 4, "Seat of the Synod": 4, "Serrated Arrows": 1, "Shrivel": 1, "Silhana Ledgewalker": 3, "Skarrgan Pit-Skulk": 4, "Skred": 4, "Smash to Smithereens": 4, "Snap": 4, "Snow-Covered Island": 4, "Snow-Covered Mountain": 2, "Soul Manipulation": 1, "Spellstutter Sprite": 4, "Spidersilk Armor": 3, "Spire Golem": 2, "Springleaf Drum": 3, "Stonehorn Dignitary": 4, "Stormbound Geist": 4, "Swiftwater Cliffs": 4, "Swirling Sandstorm": 1, "Sylvan Ranger": 2, "Temur Battle Rage": 2, "Thornwood Falls": 2, "Thoughtcast": 4, "Timberwatch Elf": 4, "Tranquil Cove": 3, "Tree of Tales": 4, "Unknown Shores": 4, "Urza's Mine": 4, "Urza's Power Plant": 4, "Urza's Tower": 4, "Vault Skirge": 3, "Vines of Vastwood": 4, "Viridian Longbow": 2, "Wellwisher": 3, "Wrap in Vigor": 1} | |
dictB = {"Abundant Growth": 4, "Ancestral Mask": 4, "Apostle's Blessing": 2, "Armadillo Cloak": 4, "Aura Flux": 1, "Aura Gnarlid": 1, "Barren Moor": 4, "Befoul": 4, "Blossoming Sands": 4, "Bojuka Bog": 1, "Brainstorm": 1, "Cartouche of Solidarity": 3, "Cartouche of Strength": 1, "Chainer's Edict": 3, "Chittering Rats": 4, "Choking Sands": 4, "Crimson Acolyte": 2, "Crypt Rats": 2, "Cuombajj Witches": 4, "Dark Ritual": 4, "Daze": 3, "Dead Weight": 2, "Delver of Secrets / Insectile Aberration": 4, "Diabolic Edict": 4, "Disfigure": 2, "Dispel": 4, "Disturbed Burial": 1, "Doom Blade": 2, "Duress": 3, "Dusk Legion Zealot": 2, "Echoing Decay": 1, "Electrickery": 4, "Ethereal Armor": 4, "Evincar's Justice": 1, "Evolving Wilds": 3, "Flaring Pain": 3, "Geth's Verdict": 4, "Gitaxian Probe": 2, "Gladecover Scout": 2, | |
"Gorilla Shaman": 1, "Gray Merchant of Asphodel": 4, "Gurmag Angler": 4, "Gush": 2, "Gut Shot": 1, "Heliod's Pilgrim": 2, "Hydroblast": 3, "Icequake": 4, "Khalni Garden": 2, "Kiln Fiend": 4, "Lifelink": 1, "Lightning Bolt": 4, "Manamorphose": 1, "Mutagenic Growth": 3, "Nausea": 2, "Night's Whisper": 2, "Nivix Cyclops": 4, "Outwit": 1, "Peat Bog": 4, "Pestilence": 4, "Phyrexian Rager": 3, "Ponder": 4, "Preordain": 4, "Pyroblast": 3, "Radiant Fountain": 1, "Rancid Earth": 4, "Rancor": 3, "Read the Bones": 1, "Relic of Progenitus": 1, "Shrivel": 1, "Sign in Blood": 4, "Silhana Ledgewalker": 4, "Slippery Bogle": 4, "Snuff Out": 1, "Standard Bearer": 2, "Temur Battle Rage": 4, "Tendrils of Corruption": 3, "Thorn of the Black Rose": 4, "Unearth": 2, "Utopia Sprawl": 4, "Vapor Snag": 1, "Victim of Night": 3, "Young Wolf": 3} | |
def main(): | |
for k in dictB: | |
if k in dictA: | |
xx = dictA[k] + dictB[k] | |
dictA[k] = 4 if xx >= 4 else xx | |
else: | |
dictA[k] = dictB[k] | |
print len(dictA) | |
for key in sorted(dictA.iterkeys()): | |
print (("{}: {}").format(key, dictA[key])) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment