diff --git a/2022/05-gencant/Rules.md b/2022/05-gencant/Rules.md new file mode 100644 index 0000000..1f793ff --- /dev/null +++ b/2022/05-gencant/Rules.md @@ -0,0 +1,44 @@ +# Hexeptional Hexpertise + +You are all mages competing to put on the flashiest magic display for the festival! +Arrange the elements to put on a good show. + +Take the three border cards and deal each one faceup. +Place the top elements in the fixed hexes on the corners in clockwise order from the top. +Place the bottom elements in the fixed hexes on the corners in clockwise order from the bottom. + +The center hex represents you, the mage. +It is neutral (not aligned with any element). + +Each turn, flip the top card of the mana deck. +It shows two elements. +Place the elements in a hex connected to the mage by other filled hexes, in either order. + +If either of the following elements are touching, cross them out. +They have nullified each other. + +- Light and Dark +- Fire and Water +- Earth and Air + +When all 15 mana cards have been flipped, the festival is over. +See how the audience liked your display with the following rules. +Do not count nullified elements. + +- Light = 3 points if not touching other Light + - Light shines brightest on its own +- Dark = 3 points for each hex in the cluster after the first + - Darkness tries to swallow everything +- Fire = 2 points for each adjacent Fire + - Fire grows and burns +- Water = 3 times length for straight line of 3 or more + - Water flows like a river +- Earth = 4 points for each cluster of 3 + - Earth is solid and clustered together +- Air = 3 points for each time the line curves + - Air is flowing +- Harmonic Convergence = flower or line of all 6 elements = 10 points + - Perfect convergence of elements puts on a flashy show + +The highest scoring display wins the festival! +In case of a tie, use the scores for the individual elements, in clockwise order starting from the top. \ No newline at end of file diff --git a/2022/05-gencant/gamecards.py b/2022/05-gencant/gamecards.py index f6eca35..7efd716 100644 --- a/2022/05-gencant/gamecards.py +++ b/2022/05-gencant/gamecards.py @@ -4,7 +4,7 @@ import itertools import random print("Setup") -setup_cards = [['Light','Dark'], ['Fire', 'Water'], ['Wind', 'Earth']] +setup_cards = [['Light','Dark'], ['Fire', 'Water'], ['Air', 'Earth']] random.shuffle(setup_cards) for setup_card in setup_cards: @@ -13,9 +13,8 @@ for setup_card in setup_cards: 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]}") + input(f"Card {i+1}: {card[0]} {card[1]}") diff --git a/2022/05-gencant/hexgrid.pdn b/2022/05-gencant/hexgrid.pdn new file mode 100644 index 0000000..d401dce Binary files /dev/null and b/2022/05-gencant/hexgrid.pdn differ