Elements the Game Forum - Free Online Fantasy Card Game

Other Topics => Elements Portal => Elements Tools => Topic started by: Xenocidius on September 26, 2011, 03:31:21 pm

Title: Elements Opening Hand Simulator
Post by: Xenocidius on September 26, 2011, 03:31:21 pm
This nifty little program will simulate a number of different opening hands for a given deck.

>> Open the Opening Hand Simulator in a new window << (http://xenocidius.webs.com/openinghandsimulator.htm)

Basically, you copy and paste a deck code, enter the amount of games you would like to run, and it will run a simulation, then return the number of games in which it drew no quanta generation in the opening hand, number of games in which it drew no 0-cost cards in the opening hand, number of auto-mulligans that occurred, and individual stats for each card in the deck.

The way the opening hand is chosen is that it picks 7 random cards, performs a mulligan if there are no 0-cost cards in hand, then picks an extra card if you lost the coin toss.

Note: Quanta generation only includes 0-cost quanta generation. This includes pillars, pendulums, marks, Nova, creatures like Ray of Light and Gnome Gemfinder, and in a special instance, will also count Immolation as quanta generation IF you also draw a 0-cost creature.

It can handle 10000 games pretty soundly, but can get quite slow with significantly higher numbers.

Thoughts? Queries? Suggestions?
Title: Re: Elements Opening Hand Simulator
Post by: EmeraldTiger on September 26, 2011, 03:45:15 pm
I'm getting a page not found message.
Title: Re: Elements Opening Hand Simulator
Post by: Xenocidius on September 26, 2011, 03:49:06 pm
I'm getting a page not found message.
[embarassed]Fixed.[/embarassed]
Title: Re: Elements Opening Hand Simulator
Post by: EmeraldTiger on September 26, 2011, 03:55:08 pm
by EmeraldTiger
Hover over cards for details, click for permalink
Deck import code : [Select]
4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4t3 4tg 4tg 4tg 4tg 4tg 4tg 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vd 4ve 4ve 4ve 4vf 4vg 4vh 4vh 4vi 4vi 4vi 4vk 4vk 4vk 8pj

Runs: 1000
Coin toss wins: 495
Coin toss losses: 505
Mulligans: 8 (0.80% of all games)
Hands without 0 cost cards: 0 (0.00% of all games)
Hands without quanta generation: 0 (0.00% of all games)
Card
Number dealt per game
Number dealt per game
% of games in starting hand
Quantum Pillar16851.68585.10
Dagger2010.20118.30
Shard of Serendipity11201.12070.40
Amethyst Pillar18731.87388.50
Maxwell's Demon1880.18817.10
Abomination5480.54844.00
Purple Dragon1970.19717.50
Dissipation Shield1880.18817.00
Lycanthrope3750.37531.50
Chaos Seed5700.57044.10
Mutation5600.56043.90
Title: Re: Elements Opening Hand Simulator
Post by: Xenocidius on September 27, 2011, 04:46:57 am
Fixed slight export problems.

by Xenocidius
Hover over cards for details, click for permalink
Deck import code : [Select]
4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4t3 4tg 4tg 4tg 4tg 4tg 4tg 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vc 4vd 4ve 4ve 4ve 4vf 4vg 4vh 4vh 4vi 4vi 4vi 4vk 4vk 4vk 8pj

Runs: 1000
Coin toss wins: 522
Coin toss losses: 478
Mulligans: 8 (0.80% of all games)
Hands without 0 cost cards: 0 (0.00% of all games)
Hands without quanta generation: 2 (0.20% of all games)

Card
Number dealt
Number dealt per game
% of games in starting hand
Quantum Pillar16641.66484.30
Dagger1960.19618.50
Shard of Serendipity10841.08468.90
Amethyst Pillar18801.88089.30
Maxwell's Demon1970.19718.20
Abomination5620.56243.90
Purple Dragon2120.21218.70
Dissipation Shield1890.18917.00
Lycanthrope3720.37231.20
Chaos Seed5280.52842.50
Mutation5940.59445.70
Title: Re: Elements Opening Hand Simulator
Post by: bored_ninja777 on September 27, 2011, 04:56:38 am
wow i didnt know this existed until ur post about requesting a tool :P this is pretty nice.. is it pretty accurate?
say u do 100 games in this.. and keep track of 100 games manually ? just curious.. i like it either way.
Title: Re: Elements Opening Hand Simulator
Post by: Xenocidius on September 27, 2011, 05:07:46 am
Unless there's a bug or I used the wrong algorithm it should be 100% accurate.

Note that results can vary depending on the sample size. About 10000 games is enough for a relatively accurate result.
Title: Re: Elements Opening Hand Simulator
Post by: russianspy1234 on September 27, 2011, 05:13:27 am
so does this use a regular random number generator or the one elements uses?
Title: Re: Elements Opening Hand Simulator
Post by: Xenocidius on September 27, 2011, 05:15:58 am
Ah ... it uses Javascript's RNG. It's pretty much the same as Actionscript's RNG but without the evil.
Title: Re: Elements Opening Hand Simulator
Post by: bored_ninja777 on September 27, 2011, 05:16:40 am
well great.. i shall use this more often.. i was wondering why i had issues with starting draws.. i added 2 quatum towers and it said i should get 2 per starting hand instead of the 1.03 or w/e it was i was getting and it does in fact seem to have helped. thanks for these tools :D
Title: Re: Elements Opening Hand Simulator
Post by: Jangoo on February 10, 2013, 01:28:46 pm

Is this still up to date?

To mod:  In any case, it could be moved to the tools section.  ;)
Title: Re: Elements Opening Hand Simulator
Post by: teffy on February 10, 2013, 04:03:38 pm
It would also be very nice of you, if you could repair your tools (http://elementscommunity.org/forum/index.php/topic,46107.0.html).
Title: Re: Elements Opening Hand Simulator
Post by: pie on February 10, 2013, 04:20:52 pm
Very nice , good job!
Maybe add a new feature that follows a specific card of your choice and show the number and %% of times it has x copies in the starting hand .
blarg: EmeraldTiger,Xenocidius