Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import random
# heroes.txt file format: One hero per line
# Comments in players.txt & heroes.txt with # at first position
# players.txt file format: One player per line.
# <player_name>: <banned_hero_1>, <banned_hero_2>, ..., <banned_hero_n>
# global list of heroes and players