2022-05-20 20:14:10 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import itertools
|
|
|
|
import random
|
|
|
|
|
|
|
|
print("Setup")
|
2022-05-20 22:37:22 -04:00
|
|
|
setup_cards = [['Light','Dark'], ['Fire', 'Water'], ['Air', 'Earth']]
|
2022-05-20 20:14:10 -04:00
|
|
|
random.shuffle(setup_cards)
|
|
|
|
|
|
|
|
for setup_card in setup_cards:
|
|
|
|
random.shuffle(setup_card)
|
|
|
|
print(setup_card)
|
|
|
|
|
|
|
|
input("Press enter to start the game")
|
|
|
|
|
|
|
|
cards = list(itertools.combinations(itertools.chain(*setup_cards), 2))
|
|
|
|
random.shuffle(cards)
|
|
|
|
|
|
|
|
for i, card in enumerate(cards):
|
2022-05-20 22:37:22 -04:00
|
|
|
input(f"Card {i+1}: {card[0]} {card[1]}")
|