Maximum Deck Size
Posted: Sun 12 Sep, 2010 10:58 am
Hi,
It's a long time since I've contributed here but I've been happily using Orphalese and recommending it to friends!
I have found out that Orphalese will not shuffle beyond 256 cards in a deck.
I have been using a Deck with 256 cards for some time to simulate as closely as possible the I Ching "Yarrow Stalk" Odds. As far as I can see it IS correctly shuffling a Deck of this size - but no further!
I have checked the Odds that Books on the subject gave for the Yarrow Stalk method and found that they had got it wrong. I did do an A level in Maths and am very familiar with Spreadsheets (among other things) so I used one to plot every single possible move in the Yarrow Stalk method of choosing a Hexagram. The odds came out quite different to what the books said. They may be historians and Linguists but it seems they aren't very good at either Maths or Logic!
I wanted to model these new more correct Odds within Orphalese so I decided to double up the size of my Deck to allow more precision. In particular I wanted to have more than 6 sixes, since it should be possible to have a Hexagram with 6x sixes! With only 6 x sixes in the Deack it does warp the Odds for this very unusual Draw. So I created the Deck with 512 cards.
When I shuffled it in Orphalese I could see that something was not working correctly and checked. It was only shuffling up to about half way into the Deck. On counting the unshuffled cards at the end of the Deck (using F4) it seemed that the division is exactly at half way 256 - a power of 2 and therefore a likely division in a computer program.
If it is possible in a future version it would be nice if this shuffling limit could be extended either to 512 or even better to 1024.
Yes with 256 cards it does slow down shuffling, bacause some of the cards are displayed during the shuffle as a kind of "progress bar". The file size of my cards is small at 3.54 kb but it does take 15 or 20 seconds. I would be willing to double this or even quadruple this to have a better modelling of the Yarrow Stalk Odds.
I have another suggestion to speed up Shuffling for any Deck with either a lot of cards or highly detailed cards for better viewing when the picture is important. Since you shouldn't really be able to see the shuffled cards anyway, and this is really only a glorified "progress bar", why not just select any two early cards in the Deck (at random - although it would be faster if this were fixed) then simply alternate them to give the "progress bar"
I have now gone back to a 256 sized Deck, reflecting the correct Odds (and with only 6 x sixes!)
My first reading with it seemed stunningly accurate! Wow!
Thanks for a great program!
Regards Greg the Yeti
------------------------------------------------------------------------
If anyone is interested the Odds I calculated, here they are.
6:- 0.0232863
7:- 0.2733648
8:- 0.4813379
9:- 0.222011
8+6 = 0.5046242
7+9 = 0.4953758
So it ISN'T equally likely to get a Yin or a Yang!
My statistics do NOT include the human operator influence:- When I do Yarrow Stalks for real I have a tendency to divide the piles about 1/3 - 2/3. For me I would need to program in a typical Bell Shaped probability distribution curve, centering around that 1/3 division. Other "operators" would behave differently and require a different probability distribution curve. The Odds above assume equal probability for each way of dividing the piles of sticks.
It's a long time since I've contributed here but I've been happily using Orphalese and recommending it to friends!
I have found out that Orphalese will not shuffle beyond 256 cards in a deck.
I have been using a Deck with 256 cards for some time to simulate as closely as possible the I Ching "Yarrow Stalk" Odds. As far as I can see it IS correctly shuffling a Deck of this size - but no further!
I have checked the Odds that Books on the subject gave for the Yarrow Stalk method and found that they had got it wrong. I did do an A level in Maths and am very familiar with Spreadsheets (among other things) so I used one to plot every single possible move in the Yarrow Stalk method of choosing a Hexagram. The odds came out quite different to what the books said. They may be historians and Linguists but it seems they aren't very good at either Maths or Logic!
I wanted to model these new more correct Odds within Orphalese so I decided to double up the size of my Deck to allow more precision. In particular I wanted to have more than 6 sixes, since it should be possible to have a Hexagram with 6x sixes! With only 6 x sixes in the Deack it does warp the Odds for this very unusual Draw. So I created the Deck with 512 cards.
When I shuffled it in Orphalese I could see that something was not working correctly and checked. It was only shuffling up to about half way into the Deck. On counting the unshuffled cards at the end of the Deck (using F4) it seemed that the division is exactly at half way 256 - a power of 2 and therefore a likely division in a computer program.
If it is possible in a future version it would be nice if this shuffling limit could be extended either to 512 or even better to 1024.
Yes with 256 cards it does slow down shuffling, bacause some of the cards are displayed during the shuffle as a kind of "progress bar". The file size of my cards is small at 3.54 kb but it does take 15 or 20 seconds. I would be willing to double this or even quadruple this to have a better modelling of the Yarrow Stalk Odds.
I have another suggestion to speed up Shuffling for any Deck with either a lot of cards or highly detailed cards for better viewing when the picture is important. Since you shouldn't really be able to see the shuffled cards anyway, and this is really only a glorified "progress bar", why not just select any two early cards in the Deck (at random - although it would be faster if this were fixed) then simply alternate them to give the "progress bar"
I have now gone back to a 256 sized Deck, reflecting the correct Odds (and with only 6 x sixes!)
My first reading with it seemed stunningly accurate! Wow!
Thanks for a great program!
Regards Greg the Yeti
------------------------------------------------------------------------
If anyone is interested the Odds I calculated, here they are.
6:- 0.0232863
7:- 0.2733648
8:- 0.4813379
9:- 0.222011
8+6 = 0.5046242
7+9 = 0.4953758
So it ISN'T equally likely to get a Yin or a Yang!
My statistics do NOT include the human operator influence:- When I do Yarrow Stalks for real I have a tendency to divide the piles about 1/3 - 2/3. For me I would need to program in a typical Bell Shaped probability distribution curve, centering around that 1/3 division. Other "operators" would behave differently and require a different probability distribution curve. The Odds above assume equal probability for each way of dividing the piles of sticks.