Posts

Showing posts with the label race for the galaxy

Traditional Haircuts: Fact or Fiction?*

My genetic algorithm for dominion is having problems. On some sets of kingdom cards it works properly, but on others it just fails right out. I am wondering if there is the possibility of a paper scissor rock type situation, where the best guy in one generation is of a strategy that all of the other guys eventually learn how to overcome, and then they are dominant, and then other people develop strategies that overcome all of the 'second generation' winners, and then the third generation winners are weak against the original strategy. If this is the case, then I may need a way to increase genetic variance in the middle of the simulation. We accidentally taught Andrea that if she gets hurt she will be sent to her room. The way that this happened is as follows: When Andrea gets in  trouble for being disobedient or for throwing a tantrum we send her to her room and almost always say "This is so sad" while we pick her up. When Andrea gets hurt we often say "Th...

They are not for eating

Image
The Genetic algorithm is working well. It can come up with a buy strategy and test different players with that strategy to see which one is more fit to survive. after about 5 hours (100 generations into the simulation) it came up with the following strategy: Name Priority Min Max Province 9.46 2 9 Witch 6.44 2 5 Silver 6.55 6 ∞ Duchy 5.54 ∞ — Gold 4.99 4 8 Militia 4.97 1 4 Library 3.48 5 — Village 2.23 6 ∞ Copper 0.03 4 — Smithy -1.80 7 — Cellar -3.27 6 7 Laboratory -3.32 5 — Curse -4.58 8 — Chapel -5.35 0 5 Estate -5.92 5 — Moneylender -8.88 2 4 Once a player algorithm purchases up to the minimum desired value, the priority of the card is halved, so once the player has 2 witches he will start buying duchies. Also, if the player has more gold than is required to purchase something, the value of that thing is reduced (if you are 1 over, the value is halved, and if you are 2 over it is cut by 2/3 etc), so with 6 gold this player will buy golds and not sil...