Skip to content

Instantly share code, notes, and snippets.

@NanoSmasher
Created December 22, 2018 04:48
Show Gist options
  • Save NanoSmasher/ddef0b2fafadcdf1d0d8bc2b87024503 to your computer and use it in GitHub Desktop.
Save NanoSmasher/ddef0b2fafadcdf1d0d8bc2b87024503 to your computer and use it in GitHub Desktop.
Lower-diagonal cell equal for matchup charts. Hardcoded variables and Not optimized at all -_-
s = ""
t = ["B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "AA", "AB", "AC", "AD", "AE", "AF", "AG", "AH", "AI", "AJ", "AK", "AL", "AM", "AN", "AO", "AP", "AQ", "AR", "AS", "AT", "AU", "AV", "AW", "AX", "AY", "AZ", "BA", "BB", "BC", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BK", "BL", "BM", "BN", "BO", "BP", "BQ", "BR", "BS", "BT"]
for i in range(4,74):
e = ""
for j in range(4,74):
if i <= j:
e += "\t"
else:
e += "=" + t[i-4] + str(j) + "\t"
s += e+"\n"
f = open("matchup.txt", "w")
f.write(s)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment