Skip to content

Instantly share code, notes, and snippets.

@andersx
Created December 9, 2019 11:46
Show Gist options
  • Save andersx/ebeed6fa1be5ac91054fd626da12e5f4 to your computer and use it in GitHub Desktop.
Save andersx/ebeed6fa1be5ac91054fd626da12e5f4 to your computer and use it in GitHub Desktop.
Determine matchups
#!/usr/bin/env python3
import numpy as np
RACES = ["T", "Z", "P"]
MAPS = ["Ephemeron LE",
"Eternal Empire LE",
"Nightshade LE",
"Simulacrum LE",
"Triton LE",
"World of Sleepers LE",
"Zen LE",]
if __name__ == "__main__":
matchups = []
for casper in RACES:
for anders in RACES:
for mmap in MAPS:
match = "%sv%s %s" % (casper, anders, mmap)
matchups.append(match)
np.random.shuffle(matchups)
for i, matchup in enumerate(matchups):
print(i+1, matchup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment