Last active
December 31, 2015 08:29
-
-
Save mobeets/7960720 to your computer and use it in GitHub Desktop.
Odds of winning one-Handed Solitaire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<br><br><br> | |
<div style="margin-left: auto; margin-right: auto; width: 70%;"> | |
<b>Results from a simulation of 100,000 rounds of <a href="https://en.wikipedia.org/wiki/One-Handed_Solitaire">One-handed solitaire</a>.</b> | |
<br> | |
<i>Median and Mode result is 12 cards. Mean is 13.3.</i> | |
<br> | |
<i>Odds of winning a single game are 0.71%.</i> | |
<br> | |
<b><i>You must play ~420 games to be guaranteed of winning at least once (with 95% confidence).</i></b> | |
</div> | |
<br><br> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js"> {"dataSourceUrl":"//docs.google.com/spreadsheet/tq?key=0Aoc3fUcjL2P-dEI4dzlaS213RHFHNXV6SUJEamVxaGc&transpose=0&headers=1&range=D1%3AE48&gid=1&pub=1","options":{"titleTextStyle":{"bold":true,"color":"#000","fontSize":16},"series":{"0":{"color":"#3c78d8"}},"animation":{"duration":0},"width":1280,"hAxis":{"useFormatFromData":true,"title":"# cards left","slantedTextAngle":90,"slantedText":true,"minValue":null,"viewWindowMode":null,"textStyle":{"bold":true,"color":"#222","fontSize":"11"},"viewWindow":null,"maxValue":null},"vAxes":[{"useFormatFromData":true,"title":null,"minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null},{"useFormatFromData":true,"minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null}],"title":"Likelihood of N cards left","booleanRole":"certainty","height":508,"legend":"none","useFirstColumnAsDomain":true,"isStacked":false,"tooltip":{}},"state":{},"view":{"columns":[{"calc":"stringify","type":"string","sourceColumn":0},1]},"isDefaultVisualization":false,"chartType":"ColumnChart","chartName":"Chart 1"} </script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment