avatarJim McAulay🍁 I'm nobody. Are you a nobody too?

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

10909

Abstract

g">"old witch R"</span>,<span class="hljs-string">"patron R"</span>,<span class="hljs-string">"priest R"</span>,<span class="hljs-string">"recruiter R"</span>,<span class="hljs-string">"research R"</span>,<span class="hljs-string">"sceptre R"</span>,<span class="hljs-string">"scholar R"</span>,<span class="hljs-string">"sculptor R"</span>,<span class="hljs-string">"seer R"</span>,<span class="hljs-string">"silk merchant R"</span>,<span class="hljs-string">"spices R"</span>,<span class="hljs-string">"swashbuckler R"</span>,<span class="hljs-string">"treasurer R"</span>,<span class="hljs-string">"villain R"</span>,)</pre></div><div id="f428"><pre><span class="hljs-attr">hinterland</span> = (<span class="hljs-string">"cache H"</span>,<span class="hljs-string">"border village H"</span>,<span class="hljs-string">"cartographer H"</span>,<span class="hljs-string">"crossroads H"</span>, <span class="hljs-string">"develop H"</span>, <span class="hljs-string">"duchess H"</span>, <span class="hljs-string">"embassy H"</span>, <span class="hljs-string">"farmland H"</span>, <span class="hljs-string">"fool's gold H"</span>, <span class="hljs-string">"haggler H"</span>, <span class="hljs-string">"highway H"</span>, <span class="hljs-string">"ill gotten gains H"</span>, <span class="hljs-string">"inn H"</span>, <span class="hljs-string">"jack of all trades H"</span>, <span class="hljs-string">"mandarin H"</span>, <span class="hljs-string">"margrave H"</span>, <span class="hljs-string">"noble brigand H"</span>, <span class="hljs-string">"oasis H"</span>, <span class="hljs-string">"oracle H"</span>, <span class="hljs-string">"scheme H"</span>, <span class="hljs-string">"silk road H"</span>, <span class="hljs-string">"spice merchant H"</span>, <span class="hljs-string">"stables H"</span>, <span class="hljs-string">"tunnel H"</span>, <span class="hljs-string">"trader H"</span>, <span class="hljs-string">"nomad camp H"</span>,) </pre></div><div id="4ad1"><pre><span class="hljs-attr">empire</span> = (<span class="hljs-string">"archive E"</span>,<span class="hljs-string">"capital E"</span>, <span class="hljs-string">"catapult/rocks E"</span>, <span class="hljs-string">"chariot race E"</span>, <span class="hljs-string">"charm E"</span>, <span class="hljs-string">"city quarter E"</span>, <span class="hljs-string">"crown E"</span>, <span class="hljs-string">"encampment/plunder E"</span>, <span class="hljs-string">"enchantress E"</span>, <span class="hljs-string">"engineer E"</span>, <span class="hljs-string">"farmer's market E"</span>, <span class="hljs-string">"forum E"</span>, <span class="hljs-string">"gladiato/fortune E"</span>,<span class="hljs-string">"groundskeeper E"</span>, <span class="hljs-string">"legionary E"</span>, <span class="hljs-string">"overlord E"</span>, <span class="hljs-string">"patrician/emporium E"</span>, <span class="hljs-string">"royal blacksmith E"</span>, <span class="hljs-string">"sacrifice E"</span>, <span class="hljs-string">"settlers/bustling village E"</span>, <span class="hljs-string">"temple E"</span>, <span class="hljs-string">"villa E"</span>,<span class="hljs-string">"wild hunt E"</span>, <span class="hljs-string">"castles E"</span>,) </pre></div><div id="987f"><pre><span class="hljs-attr">seaside</span> = (<span class="hljs-string">"ambassador S"</span>,<span class="hljs-string">"bazzar S"</span>, <span class="hljs-string">"caravan S"</span>, <span class="hljs-string">"cutpurse S"</span>, <span class="hljs-string">"embargo S"</span>, <span class="hljs-string">"explorer S"</span>, <span class="hljs-string">"fishing village S"</span>, <span class="hljs-string">"ghost ship S"</span>, <span class="hljs-string">"haven S"</span>, <span class="hljs-string">"island S"</span>, <span class="hljs-string">"lighthoiuse S"</span>, <span class="hljs-string">"lookout S"</span>, <span class="hljs-string">"merchant ship S"</span>, <span class="hljs-string">"native village S"</span>, <span class="hljs-string">"navigator s"</span>, <span class="hljs-string">"outpost S"</span>, <span class="hljs-string">"pirate ship s"</span>, <span class="hljs-string">"salvage S"</span>, <span class="hljs-string">"smugglers S"</span>, <span class="hljs-string">"tactician S"</span>, <span class="hljs-string">"Tteasure map S"</span>, <span class="hljs-string">"treasury S"</span>, <span class="hljs-string">"warehouse S"</span>, <span class="hljs-string">"warf S"</span>, <span class="hljs-string">"sea hag S"</span>,)</pre></div><div id="654a"><pre><span class="hljs-attr">adventures</span>= (<span class="hljs-string">"amulet A"</span>,<span class="hljs-string">"artificer A"</span>, <span class="hljs-string">"bridge troll A"</span>, <span class="hljs-string">"caravan guard A"</span>, <span class="hljs-string">"distant lands A"</span>, <span class="hljs-string">"dungeoun A"</span>, <span class="hljs-string">"duplicate A"</span>, <span class="hljs-string">"gear A"</span>, <span class="hljs-string">"giant A"</span>,<span class="hljs-string">"guide A"</span>, <span class="hljs-string">"coin of the realm A"</span>, <span class="hljs-string">"haunted woods A"</span>, <span class="hljs-string">"hireling A"</span>, <span class="hljs-string">"lost city A"</span>, <span class="hljs-string">"magpie A"</span>, <span class="hljs-string">"page + A"</span>, <span class="hljs-string">"messenger A"</span>, <span class="hljs-string">"miser A"</span>, <span class="hljs-string">"port A"</span>, <span class="hljs-string">"ranger A"</span>, <span class="hljs-string">"ratcatcher A"</span>, <span class="hljs-string">"Raze A "</span>,<span class="hljs-string">"relic A"</span>, <span class="hljs-string">"royal carriage A"</span>, <span class="hljs-string">"storyteller A"</span>, <span class="hljs-string">"swamp hag A"</span>, <span class="hljs-string">"Transmogrify A"</span>, <span class="hljs-string">"Treasure trove A"</span>, <span class="hljs-string">"wine merchant A"</span>, <span class="hljs-string">"peasant+ A"</span>,)</pre></div><div id="55f3"><pre><span class="hljs-attr">prosperity</span> =( <span class="hljs-string">"Bank P"</span>, <span class="hljs-string">"Bishop P"</span>, <span class="hljs-string">"city P"</span>, <span class="hljs-string">"contraband P"</span>, <span class="hljs-string">"forge P"</span>, <span class="hljs-string">"goons P"</span>, <span class="hljs-string">"grand market P"</span>, <span class="hljs-string">"hoard P"</span>, <span class="hljs-string">"king's court P"</span>, <span class="hljs-string">"loan P"</span>, <span class="hljs-string">"mint P"</span>, <span class="hljs-string">"monument P"</span>, <span class="hljs-string">"mountebank P"</span>, <span class="hljs-string">"peddler P"</span>, <span class="hljs-string">"Quarry P"</span>, <span class="hljs-string">"rabble P"</span>, <span class="hljs-string">"royal seal P"</span>, <span class="hljs-string">"talismant P"</span>, <span class="hljs-string">"trade route P"</span>, <span class="hljs-string">"vault P"</span>, <span class="hljs-string">"venture P"</span>, <span class="hljs-string">"watchtower P "</span>,<span class="hljs-string">"worker's village P"</span>,<span class="hljs-string">"counting house P"</span>, <span class="hljs-string">"expand P"</span>)</pre></div><div id="4a5a"><pre><span class="hljs-attr">base_set</span> = (<span class="hljs-string">"harbinger BX"</span>,<span class="hljs-string">"merchant BX"</span>,<span class="hljs-string">"sentry BX"</span>,<span class="hljs-string">"diplomat BX"</span>,<span class="hljs-string">"chapel B"</span>,<span class="hljs-string">"council room B"</span>,<span class="hljs-string">"festival B"</span>,<span class="hljs-string">"laboratory B"</span>,<span class="hljs-string">"library B"</span>,<span class="hljs-string">"market B"</span>,<span class="hljs-string">"militia B"</span>,<span class="hljs-string">"mine B"</span>,<span class="hljs-string">"moat B"</span>,<span class="hljs-string">"money lender B"</span>,<span class="hljs-string">"remodel B"</span>,<span class="hljs-string">"smithy B"</span>,<span class="hljs-string">"throne room B"</span>,<span class="hljs-string">"village B"</span>,<span class="hljs-string">"witch B"</span>,<span class="hljs-string">"woodcutter B"</span>,<span class="hljs-string">"workshop B"</span>,<span class="hljs-string">"cellar B"</span>,<span class="hljs-string">"super pawn BX,"</span>)</pre></div><div id="e7df"><pre><span class="hljs-attr">guilds_cornucopia</span> = (<span class="hljs-string">"vassal CX"</span>,<span class="hljs-string">"bandit CX"</span>,<span class="hljs-string">"patrol CX"</span>,<span class="hljs-string">"fairgrounds C"</span>,<span class="hljs-string">"farming village C"</span>,<span class="hljs-string">"horn of plenty C"</span>,<span class="hljs-string">"forrtune teller C"</span>,<span class="hljs-string">"hamlet C"</span>,<span class="hljs-string">"harvest C"</span>,<span class="hljs-string">"horse trader C"</span>,<span class="hljs-string">"hunting party C"</span>,<span class="hljs-string">"menagerie C"</span>,<span class="hljs-string">"jester C"</span>,<span class="hljs-string">"remake C"</span>,<span class="hljs-string">"tournament C"</span>,<span class="hljs-string">"young witch C"</span>,<span class="hljs-string">"baker G"</span>,<span class="hljs-string">"butcher G"</span>,<span class="hljs-string">"candlestick maker G"</span>,<span class="hljs-string">"doctor G"</span>,<span class="hljs-string">"herald G"</span>,<span class="hljs-string">"journeyman G"</span>,<span class="hljs-string">"masterpiece G"</span>,<span class="hljs-string">"plaza G"</span>,<span class="hljs-string">"southsayer G"</span>,<span class="hljs-string">"stonemason G"</span>,<span class="hljs-string">"taxman G"</span>,<span class="hljs-string">"merchant gui G"</span>,)</pre></div><div id="af60"><pre><span class="hljs-attr">intrigue</span> = (<span class="hljs-string">"replace IX"</span>,<span class="hljs-string">"poacher IX"</span>,<span class="hljs-string">"courtier IX"</span>,<span class="hljs-string">"mill IX"</span>,<span class="hljs-string">"secret passage IX"</span>,<span class="hljs-string">"baron I"</span>,<span class="hljs-string">"bridge I"</span>,<span class="hljs-string">"conspiritor I"</span>,<span class="hljs-string">"coppersmith I"</span>,<span class="hljs-string">"ironworks I"</span>,<span class="hljs-string">"masquerade I"</span>,<span class="hljs-string">"mining village I"</span>,<span class="hljs-string">"minion I"</span>,<span class="hljs-string">"pawn I"</span>,<span class="hljs-string">"shanty town I"</span>,<span class="hljs-string">"steward I"</span>,<span class="hljs-string">"swindler I"</span>,<span class="hljs-string">"torturer I"</span>,<span class="hljs-string">"trading post I"</span>,<span class="hljs-string">"upgrade I"</span>,<span class="hljs-string">"wishing well I"</span>,<span class="hljs-string">"great hall I"</span>,<span class="hl

Options

js-string">"nobles I"</span>,<span class="hljs-string">"harem I"</span>,<span class="hljs-string">"duke I"</span>,)</pre></div><div id="c343"><pre><span class="hljs-attr">menagerie</span> = (<span class="hljs-string">"animal fair M"</span>,<span class="hljs-string">"barge M"</span>,<span class="hljs-string">"black cat M"</span>,<span class="hljs-string">"bounty hunter M"</span>,<span class="hljs-string">"camel train M"</span>,<span class="hljs-string">"cardinal M"</span>,<span class="hljs-string">"cavalry M"</span>,<span class="hljs-string">"coven M"</span>,<span class="hljs-string">"destrier M"</span>,<span class="hljs-string">"displace M"</span>,<span class="hljs-string">"falconer M"</span>,<span class="hljs-string">"fisherman M"</span>,<span class="hljs-string">"gatekeeper M"</span>,<span class="hljs-string">"goatherd M"</span>,<span class="hljs-string">"groom M"</span>,<span class="hljs-string">"hostelry M"</span>,<span class="hljs-string">"hunting lodge M"</span>,<span class="hljs-string">"kiln M"</span>,<span class="hljs-string">"livery M"</span>,<span class="hljs-string">"mastermind M"</span>,<span class="hljs-string">"paddock M"</span>,<span class="hljs-string">"sanctuary M"</span>,<span class="hljs-string">"scrap M"</span>,<span class="hljs-string">"sheepdog M"</span>,<span class="hljs-string">"sleigh M"</span>,<span class="hljs-string">"snowy village M"</span>,<span class="hljs-string">"stockpile M"</span>,<span class="hljs-string">"supplies M"</span>,<span class="hljs-string">"village green M"</span>,<span class="hljs-string">"wayfarer M"</span>,)</pre></div><div id="df0d"><pre><span class="hljs-attr">nocturne</span> =(<span class="hljs-string">"bard N"</span>,<span class="hljs-string">"blesed village N"</span>,<span class="hljs-string">"cemetary/ haunted mirror N"</span>,<span class="hljs-string">"changeling N"</span>,<span class="hljs-string">"cobbler N"</span>,<span class="hljs-string">"conclave N"</span>,<span class="hljs-string">"crypt N"</span>,<span class="hljs-string">"cursed village N"</span>,<span class="hljs-string">"den of sin N"</span>,<span class="hljs-string">"devil's workshop N"</span>,<span class="hljs-string">"druid N"</span>,<span class="hljs-string">"exorcist N"</span>,<span class="hljs-string">"ghost town N"</span>,<span class="hljs-string">"guardian N"</span>,<span class="hljs-string">"idol N"</span>,<span class="hljs-string">"leprecaun N"</span>,<span class="hljs-string">"monastery N"</span>,<span class="hljs-string">"necromancer/zombies N"</span>,<span class="hljs-string">"night watchman N"</span>,<span class="hljs-string">"pixie/goat N"</span>,<span class="hljs-string">"pooka cursed gold N"</span>,<span class="hljs-string">"raider N"</span>,<span class="hljs-string">"secret cave/ magic lamp N"</span>,<span class="hljs-string">"shepherd/pasture N"</span>,<span class="hljs-string">"fool/lucky coin N"</span>,<span class="hljs-string">"skulk N"</span>,<span class="hljs-string">"tormentor N"</span>,<span class="hljs-string">"tragic hero N"</span>,<span class="hljs-string">"tracker/pouch N"</span>,<span class="hljs-string">"werewolf N"</span>,<span class="hljs-string">"vsmpitr/bat N"</span>,<span class="hljs-string">"faithful hound N"</span>,<span class="hljs-string">"sacred grpve N"</span>,)</pre></div><div id="c27f"><pre><span class="hljs-function"><span class="hljs-keyword">for</span> i in <span class="hljs-title">range</span> <span class="hljs-params">(<span class="hljs-number">4</span>)</span>: wselect =</span> random.<span class="hljs-built_in">sample</span>(ways,<span class="hljs-number">8</span>) lselect = random.<span class="hljs-built_in">sample</span>(landmarks,<span class="hljs-number">8</span>) eselect = random.<span class="hljs-built_in">sample</span>(events,<span class="hljs-number">8</span>) pselect = random.<span class="hljs-built_in">sample</span>(projects,<span class="hljs-number">8</span>)</pre></div><div id="cc0c"><pre> <span class="hljs-attr">display1</span> = [<span class="hljs-string">"no way,project,event or landmark"</span>] <span class="hljs-attr">display2</span> = [wselect.pop(),pselect.pop()] <span class="hljs-attr">display3</span> = [eselect.pop()] <span class="hljs-attr">display4</span> = [pselect.pop()] <span class="hljs-attr">display5</span> = [pselect.pop(),eselect.pop()] <span class="hljs-attr">display6</span> = [pselect.pop(),lselect.pop(),eselect.pop()] <span class="hljs-attr">display7</span> = [pselect.pop(),wselect.pop(),] <span class="hljs-attr">display8</span> = [wselect.pop()] <span class="hljs-attr">display9</span> = [wselect.pop(),lselect.pop(),pselect.pop()] <span class="hljs-attr">display10</span> = [wselect.pop(),lselect.pop()] <span class="hljs-attr">display11</span> = [wselect.pop(),lselect.pop(),eselect.pop()] <span class="hljs-attr">display12</span> = [wselect.pop(),eselect.pop(),pselect.pop()] <span class="hljs-attr">display13</span> = [lselect.pop()] <span class="hljs-attr">display14</span> = [lselect.pop(),eselect.pop()] <span class="hljs-attr">display15</span> = [wselect.pop(),eselect.pop()] <span class="hljs-attr">display0</span> = [lselect.pop(),pselect.pop()]</pre></div><div id="006e"><pre><span class="hljs-attribute">num</span> <span class="hljs-operator">=</span> random.randrange (<span class="hljs-number">16</span>)</pre></div><div id="2284"><pre> <span class="hljs-keyword">if</span> num == 1: <span class="hljs-built_in">print</span> (display1) <span class="hljs-keyword">if</span> num == 2: <span class="hljs-built_in">print</span> (display2) <span class="hljs-keyword">if</span> num == 3: <span class="hljs-built_in">print</span> (display3) <span class="hljs-keyword">if</span> num == 4: <span class="hljs-built_in">print</span> (display4) <span class="hljs-keyword">if</span> num == 5: <span class="hljs-built_in">print</span> (display5) <span class="hljs-keyword">if</span> num == 6: <span class="hljs-built_in">print</span> (display6) <span class="hljs-keyword">if</span> num == 7: <span class="hljs-built_in">print</span> (display7) <span class="hljs-keyword">if</span> num == 8: <span class="hljs-built_in">print</span> (display8) <span class="hljs-keyword">if</span> num == 9: <span class="hljs-built_in">print</span> (display9) <span class="hljs-keyword">if</span> num == 10: <span class="hljs-built_in">print</span> (display10) <span class="hljs-keyword">if</span> num == 11: <span class="hljs-built_in">print</span> (display11) <span class="hljs-keyword">if</span> num == 12: <span class="hljs-built_in">print</span> (display12) <span class="hljs-keyword">if</span> num == 13: <span class="hljs-built_in">print</span> (display13) <span class="hljs-keyword">if</span> num == 14: <span class="hljs-built_in">print</span> (display14) <span class="hljs-keyword">if</span> num == 15: <span class="hljs-built_in">print</span> (display15) <span class="hljs-keyword">if</span> num == 0: <span class="hljs-built_in">print</span> (display0)</pre></div><div id="7f56"><pre><span class="hljs-built_in">print</span> ()

P = <span class="hljs-string">"play wih colonies and platinum"</span>
S = <span class="hljs-string">"play with shelters"</span>
B = <span class="hljs-string">"play with shelters, and colonies and platinum"</span>
N = <span class="hljs-string">"no shelters or colonies and platinum"</span>

extras = random.randrange (4)
<span class="hljs-keyword">if</span> extras == 0: <span class="hljs-built_in">print</span> (P)
<span class="hljs-keyword">if</span> extras == 2: <span class="hljs-built_in">print</span> (S)
<span class="hljs-keyword">if</span> extras == 3: <span class="hljs-built_in">print</span> (B)
<span class="hljs-keyword">if</span> extras == 1: <span class="hljs-built_in">print</span> (N)
<span class="hljs-built_in">print</span> ()</pre></div><div id="18b9"><pre>population = (<span class="hljs-string">"x"</span>,<span class="hljs-string">"d"</span>,<span class="hljs-string">"r"</span>,<span class="hljs-string">"h"</span>,<span class="hljs-string">"e"</span>,<span class="hljs-string">"s"</span>,<span class="hljs-string">"a"</span>,<span class="hljs-string">"p"</span>,<span class="hljs-string">"i"</span>,<span class="hljs-string">"m"</span>,<span class="hljs-string">"n"</span>,<span class="hljs-string">"b"</span>,<span class="hljs-string">"c"</span>,)
<span class="hljs-keyword">sets</span> = random.sample <span class="hljs-comment">(population,4)</span>
display <span class="hljs-comment">= []</span>
if <span class="hljs-comment">"x"</span> <span class="hljs-comment">in sets: display.extend (alchemy)</span>
if <span class="hljs-comment">"d"</span> <span class="hljs-comment">in sets: display.extend (dark_ages)</span>
if <span class="hljs-comment">"r"</span> <span class="hljs-comment">in sets: display.extend (renaissance)</span>
if <span class="hljs-comment">"h"</span> <span class="hljs-comment">in sets: display.extend (hinterland)</span>
if <span class="hljs-comment">"e"</span> <span class="hljs-comment">in sets: display.extend (empire)</span>
if <span class="hljs-comment">"s"</span> <span class="hljs-comment">in sets: display.extend (seaside)</span>
if <span class="hljs-comment">"a"</span> <span class="hljs-comment">in sets: display.extend (adventures)</span>
if <span class="hljs-comment">"p"</span> <span class="hljs-comment">in sets: display.extend (prosperity)</span>
if <span class="hljs-comment">"i"</span> <span class="hljs-comment">in sets: display.extend (intrigue)</span>
if <span class="hljs-comment">"m"</span> <span class="hljs-comment">in sets: display.extend (menagerie)</span>
if <span class="hljs-comment">"n"</span> <span class="hljs-comment">in sets: display.extend (nocturne)</span>
if <span class="hljs-comment">"b"</span> <span class="hljs-comment">in sets: display.extend (base_set)</span>
if <span class="hljs-comment">"c"</span> <span class="hljs-comment">in sets: display.extend (guilds_cornucopia)</span></pre></div><div id="0450"><pre><span class="hljs-keyword">final</span> = random.<span class="hljs-built_in">sample</span>(display,<span class="hljs-number">10</span>)</pre></div><div id="6664"><pre><span class="hljs-built_in">print</span> (final)
<span class="hljs-built_in">print</span>  ()
<span class="hljs-built_in">print</span> (<span class="hljs-string">"###############################################################################"</span>)
<span class="hljs-built_in">print</span> ()</pre></div><p id="cf57"><a href="https://readmedium.com/c4d5fe0b9b6c?source=post_page-----acf8106ab83d----------------------">Jim McAulay🍁</a> New commandment — hygenesis 20:20</p><p id="5f35">“Thou shalt not covid thy neighbour’s life. Wear thy mask.”</p></article></body>

Python and Dominion

Programming and game setup

Photo by Kobby Mendez on Unsplash

Dominion is a deck-building card game with 13 expansions.

One of the problems with playing regularly is carting around and keeping track of over 5,000 cards every week. Fortunately, there is a computer language that helps me with the task of setting up the weekly game.

I use Python to select 4 of the 13 expansions.

I then ask it to select a total of 10 kingdom cards from those 4 expansions. If one of the expansions happens to be Alchemy, select 3 cards from the set and the remaining 7 from the rest of the sets.

Then Decide whether or not we are going to play with Platinum and colonies.

Then Decide whether or not we are going to play with shelters.

Then Choose a selection of cards from landmarks, events, ways and projects. Choose between 1 and 3 of these cards. Only 1 of each type.

Finally make a print out of the selected cards for the next 4 weeks.

Here is the code.

import random
display = []
ways = ("way of the camel","way of the butterfly","way of the mole","way of the monkey","way of the mouse","way of the worm","way of the chameleon","way of the squirrel","way of the sheep","way of the otter","way of the ox","way of the pig","way of the rat","way of the seal","way of the horse","way of the frog","way of the goat","way of the turtle",)
landmarks = ("landmark: palace","landmark:  obelisk","landmark:  orchard","landmark:  museum","landmark:  labyrinth","landmark:  baths","landmark:  tomb","landmark:  tower","landmark:  colonnade","landmark:  fountain","landmark:  mountain pass","landmark:  keep","landmark:  triumphal arch","landmark:  aqueduct","landmark:  battlefield","landmark:  defiled shrine","landmark:  arena","landmark:  basilica","landmark:  wolf den",)
events  = ("event:  conquest","event:  annex","event:  seaway","event:  quest","event:  lost arts","event:  pilgrimage","event:  donate","event:  mission","event:  training","event:  plan","event:  advance","event:  inheritance","event:  expedition","event:  trade","event:  alms","event:  scouting party","event:  dominate","event:  alliance","event:  delay","event:  pursue","event:  desperation","event:  gamble","event:  ride","event:  populate","event:  bargain","event:  invest","event:  delve","event:  wedding","event:  ritual","event:  Banquet","event:  enhance","event:  march","event:  transport","event:  banish","event:  toil","event:  triumph","event:  tax","event:  ferry","event:  bonfire","event:  pathfinding","event:  ball","event:  stampede","event:  enclave","event:  demand","event:  reap","event:  traveling fair","event:  raid","event:  salt of the earth","project:  save",)
projects =("project:  innovation","project:  crop rotation","project:  fleet","project:  citadel","project:  guild hall","project:  fair","project:  sinister plot","project:  capitalism" ,"project:  academy","project:  city gate","project:  exploration","project:  sewers","project:  pageant","project:  road network","project:  barracks","project:  canal","project:  star chart","project:  piazza","project:  silo","project:  cathedral",)
alchemy  = ("university","university","alchemist","apothecary","apprentice","familiar","golem","herbalist","philosopher's stone","possession","scrying pool","transmute","vineyard","alchemist","apothecary","apprentice","familiar","golem","herbalist","philosopher's stone","possession","scrying pool","transmute","vineyard",)
dark_ages =("altar D","armory D","Band of misfits D","bandit camp D","Beggar D","catacombs D","count D","counterfeit D","cultist D","death cart D","forager D","fortress D","graverobber D","hunting grounds D","iron monger D","junk dealer D","marauder D","market square D","mystic D","pillage D","poor house D","procession D","rebuild D","rogue D","sage D","scavenger D","squire D","hermit D","rats D","storeroom D","vagrant D","wandering minstrel D","Knights D","feodum D","urchin D",)
renaissance =("acting troupe R","border guard R","cargo ship R","ducat R","experiment R","flag bearer R","hideout R","improve R","inventor R","Lackeys R","mountain village R","old witch R","patron R","priest R","recruiter R","research R","sceptre R","scholar R","sculptor R","seer R","silk merchant R","spices R","swashbuckler R","treasurer R","villain R",)
hinterland = ("cache H","border village H","cartographer H","crossroads H", "develop H", "duchess H", "embassy H", "farmland H", "fool's gold H", "haggler H", "highway H", "ill gotten gains H", "inn H", "jack of all trades H", "mandarin H", "margrave H", "noble brigand H", "oasis H", "oracle H", "scheme H", "silk road H", "spice merchant H", "stables H", "tunnel H", "trader H", "nomad camp H",)            
empire = ("archive E","capital E", "catapult/rocks E", "chariot race E", "charm E", "city quarter E", "crown E", "encampment/plunder E", "enchantress E", "engineer E", "farmer's market E", "forum E", "gladiato/fortune E","groundskeeper E", "legionary E", "overlord E", "patrician/emporium E", "royal blacksmith E", "sacrifice E", "settlers/bustling village E", "temple E", "villa E","wild hunt E", "castles E",) 
seaside = ("ambassador S","bazzar S", "caravan S", "cutpurse S", "embargo S", "explorer S", "fishing village S", "ghost ship S", "haven S", "island S", "lighthoiuse S", "lookout S", "merchant ship S", "native village S", "navigator  s", "outpost S", "pirate ship s", "salvage S", "smugglers S", "tactician S", "Tteasure map S", "treasury S", "warehouse S", "warf S", "sea hag S",)
adventures= ("amulet A","artificer A", "bridge troll A", "caravan guard A", "distant lands A", "dungeoun A", "duplicate A", "gear A", "giant A","guide A", "coin of the realm A",  "haunted woods A", "hireling A", "lost city A", "magpie A", "page + A", "messenger A", "miser A", "port A", "ranger A", "ratcatcher A", "Raze A ","relic A", "royal carriage A", "storyteller A", "swamp hag A", "Transmogrify A", "Treasure trove A", "wine merchant A", "peasant+ A",)
prosperity =( "Bank P", "Bishop P", "city P", "contraband P", "forge P", "goons P", "grand market P", "hoard P", "king's court P", "loan P", "mint P", "monument P", "mountebank P", "peddler P", "Quarry P", "rabble P", "royal seal P", "talismant P", "trade route P", "vault P", "venture P", "watchtower P ","worker's village P","counting house P", "expand P")
base_set = ("harbinger BX","merchant  BX","sentry BX","diplomat BX","chapel B","council room B","festival B","laboratory B","library B","market B","militia B","mine B","moat B","money lender B","remodel B","smithy B","throne room B","village B","witch B","woodcutter B","workshop B","cellar B","super pawn BX,")
guilds_cornucopia = ("vassal CX","bandit CX","patrol CX","fairgrounds C","farming village C","horn of plenty C","forrtune teller C","hamlet C","harvest C","horse trader C","hunting party C","menagerie C","jester C","remake C","tournament C","young witch C","baker G","butcher G","candlestick maker G","doctor G","herald G","journeyman G","masterpiece G","plaza G","southsayer G","stonemason G","taxman G","merchant gui G",)
intrigue = ("replace IX","poacher IX","courtier IX","mill IX","secret passage IX","baron I","bridge I","conspiritor I","coppersmith I","ironworks I","masquerade I","mining village I","minion I","pawn I","shanty town I","steward I","swindler I","torturer I","trading post I","upgrade I","wishing well I","great hall I","nobles I","harem I","duke I",)
menagerie = ("animal fair M","barge M","black cat M","bounty hunter M","camel train M","cardinal M","cavalry M","coven M","destrier M","displace M","falconer M","fisherman M","gatekeeper M","goatherd M","groom M","hostelry M","hunting lodge M","kiln M","livery M","mastermind M","paddock M","sanctuary M","scrap M","sheepdog M","sleigh M","snowy village M","stockpile M","supplies M","village green M","wayfarer M",)
nocturne =("bard N","blesed village N","cemetary/ haunted mirror N","changeling N","cobbler N","conclave N","crypt N","cursed village N","den of sin N","devil's workshop N","druid N","exorcist N","ghost town N","guardian N","idol N","leprecaun N","monastery N","necromancer/zombies N","night watchman N","pixie/goat N","pooka cursed gold N","raider N","secret cave/ magic lamp N","shepherd/pasture N","fool/lucky coin N","skulk N","tormentor N","tragic hero N","tracker/pouch N","werewolf N","vsmpitr/bat N","faithful hound N","sacred grpve N",)
for i in range (4):
    wselect  = random.sample(ways,8)
    lselect  = random.sample(landmarks,8)
    eselect  = random.sample(events,8)
    pselect  = random.sample(projects,8)
    display1 = ["no way,project,event or landmark"]
    display2 = [wselect.pop(),pselect.pop()]
    display3 = [eselect.pop()]
    display4 = [pselect.pop()]
    display5 = [pselect.pop(),eselect.pop()]
    display6 = [pselect.pop(),lselect.pop(),eselect.pop()]
    display7 = [pselect.pop(),wselect.pop(),]
    display8 = [wselect.pop()]
    display9 = [wselect.pop(),lselect.pop(),pselect.pop()]
    display10 = [wselect.pop(),lselect.pop()]
    display11 = [wselect.pop(),lselect.pop(),eselect.pop()]
    display12 = [wselect.pop(),eselect.pop(),pselect.pop()]
    display13 = [lselect.pop()]
    display14 = [lselect.pop(),eselect.pop()]
    display15 = [wselect.pop(),eselect.pop()]
    display0 = [lselect.pop(),pselect.pop()]
num = random.randrange (16)
    if num == 1: print (display1)
    if num == 2: print (display2)
    if num == 3: print (display3)
    if num == 4: print (display4)
    if num == 5: print (display5)
    if num == 6: print (display6)
    if num == 7: print (display7)
    if num == 8: print (display8)
    if num == 9: print (display9)
    if num == 10: print (display10)
    if num == 11: print (display11)
    if num == 12: print (display12)
    if num == 13: print (display13)
    if num == 14: print (display14)
    if num == 15: print (display15)
    if num == 0: print (display0)
print ()
    
    P = "play wih colonies and platinum"
    S = "play with shelters"
    B = "play with shelters, and colonies and platinum"
    N = "no shelters or colonies and platinum"
 
    extras = random.randrange (4)
    if extras == 0: print (P)
    if extras == 2: print (S)
    if extras == 3: print (B)
    if extras == 1: print (N)
    print ()
population = ("x","d","r","h","e","s","a","p","i","m","n","b","c",)
    sets = random.sample (population,4)
    display = []
    if "x" in sets: display.extend (alchemy)
    if "d" in sets: display.extend (dark_ages)
    if "r" in sets: display.extend (renaissance)
    if "h" in sets: display.extend (hinterland)
    if "e" in sets: display.extend (empire)
    if "s" in sets: display.extend (seaside)
    if "a" in sets: display.extend (adventures)
    if "p" in sets: display.extend (prosperity)
    if "i" in sets: display.extend (intrigue)
    if "m" in sets: display.extend (menagerie)
    if "n" in sets: display.extend (nocturne)
    if "b" in sets: display.extend (base_set)
    if "c" in sets: display.extend (guilds_cornucopia)
final = random.sample(display,10)
print (final)
    print  ()
    print ("###############################################################################")
    print ()

Jim McAulay🍁 New commandment — hygenesis 20:20

“Thou shalt not covid thy neighbour’s life. Wear thy mask.”

Technology Hits
Python
Technology
Programming
Software Development
Recommended from ReadMedium