Add Hexpertise to the repo
This commit is contained in:
parent
f02604dbe7
commit
2ed55553df
21
2022/05-gencant/gamecards.py
Normal file
21
2022/05-gencant/gamecards.py
Normal file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import itertools
|
||||
import random
|
||||
|
||||
print("Setup")
|
||||
setup_cards = [['Light','Dark'], ['Fire', 'Water'], ['Wind', 'Earth']]
|
||||
random.shuffle(setup_cards)
|
||||
|
||||
for setup_card in setup_cards:
|
||||
random.shuffle(setup_card)
|
||||
print(setup_card)
|
||||
|
||||
input("Press enter to start the game")
|
||||
|
||||
print("Gameplay")
|
||||
cards = list(itertools.combinations(itertools.chain(*setup_cards), 2))
|
||||
random.shuffle(cards)
|
||||
|
||||
for i, card in enumerate(cards):
|
||||
input(f"{i}: {card[0]} {card[1]}")
|
BIN
2022/05-gencant/hexgrid.png
Normal file
BIN
2022/05-gencant/hexgrid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
Loading…
Reference in New Issue
Block a user