sagefr0g
Well-Known Member
i'm still working on this bj simulator project.
i have the thing splitting but not completely properly.
relevant or irrelevant as it may be for a simulator, i'd appreciate it if anyone would look over the outline below and comment on if it makes sense or not.
-----------------------------------------------------
possible scenarios and logic for a game that allows up to four splits:
for the case where four splits occur then that will constitute a total of five hands.
scenario one
all four splits came from initial hand
scenario two
three splits from initial hand
4th split from 2nd hand
scenario three
three splits from initial hand
4th split from 3rd hand
scenario four
three splits from initial hand
4th split from 4th hand
scenario five
two splits from initial hand
3rd & 4th split from 2nd hand
scenario six
two splits from initial hand
3rd split from 2nd hand
4th split from 3rd hand
scenario seven
two splits from initial hand
3rd & 4th split from 3rd hand
scenario eight
two splits from initial hand
3rd split from 2nd hand
4th split from 4th hand
scenario nine
two splits from initial hand
3rd split from 3rd hand
4th split from 4th hand
scenario ten
one split from initial hand
2nd, 3rd & 4th split from 2nd hand
scenario eleven
one split from initial hand
2nd & 3rd split from 2nd hand
4th split from 3rd hand
scenario twelve
one split from initial hand
2nd & 3rd split from 2nd hand
4th split from 4th hand
scenario thirteen
one split from initial hand
2nd split from 2nd hand
3rd split from 3rd hand
4th split from 4th hand
edit: i found two missing scenarios as below
xxxxdeleted
scenario fourteen
one split from initial hand
second split from second hand
third & fourth split from third hand
logic of splitting when four splits are allowed:
if there is going to be splitting then:
for the case where four splits occurs then:
five hands will be produced that need to be played out, that would be if there are four splits.
initial hand can have from one to four splits from it (must have at least one)
2nd hand can have from zero to three splits from it
3rd hand can have from zero to two splits from it
4th hand can have from zero to one split from it......
5th hand doesn't get to split.
the first split always comes from the intial hand creating
the second hand. that is P1
so second split could come from initial hand as it draws again first
if not it comes from the second hand when it draws, which ever way the third hand is created. that is P2
so the third split could come from the initial hand if and only if it is drawing again after having created the third hand or if initial hand draws out then it could come from the second hand when it draws or if the second hand draws out then it would come from the third hand as it draws, which ever way the fourth hand is created. that is P3
so the fourth and final split could come from the intial hand if and only if it is drawing again after having created the fourth hand or if initial hand draws out then it could come from the second hand when it draws or if the second hand draws out then it could come from the third hand as it draws or if the third hand draws out then it could come from the fourth hand as it draws, which ever way the fifth hand is created. that is P4.
make any sense?
:whip:
i have the thing splitting but not completely properly.
relevant or irrelevant as it may be for a simulator, i'd appreciate it if anyone would look over the outline below and comment on if it makes sense or not.
-----------------------------------------------------
possible scenarios and logic for a game that allows up to four splits:
for the case where four splits occur then that will constitute a total of five hands.
scenario one
all four splits came from initial hand
scenario two
three splits from initial hand
4th split from 2nd hand
scenario three
three splits from initial hand
4th split from 3rd hand
scenario four
three splits from initial hand
4th split from 4th hand
scenario five
two splits from initial hand
3rd & 4th split from 2nd hand
scenario six
two splits from initial hand
3rd split from 2nd hand
4th split from 3rd hand
scenario seven
two splits from initial hand
3rd & 4th split from 3rd hand
scenario eight
two splits from initial hand
3rd split from 2nd hand
4th split from 4th hand
scenario nine
two splits from initial hand
3rd split from 3rd hand
4th split from 4th hand
scenario ten
one split from initial hand
2nd, 3rd & 4th split from 2nd hand
scenario eleven
one split from initial hand
2nd & 3rd split from 2nd hand
4th split from 3rd hand
scenario twelve
one split from initial hand
2nd & 3rd split from 2nd hand
4th split from 4th hand
scenario thirteen
one split from initial hand
2nd split from 2nd hand
3rd split from 3rd hand
4th split from 4th hand
edit: i found two missing scenarios as below
xxxxdeleted
scenario fourteen
one split from initial hand
second split from second hand
third & fourth split from third hand
logic of splitting when four splits are allowed:
if there is going to be splitting then:
for the case where four splits occurs then:
five hands will be produced that need to be played out, that would be if there are four splits.
initial hand can have from one to four splits from it (must have at least one)
2nd hand can have from zero to three splits from it
3rd hand can have from zero to two splits from it
4th hand can have from zero to one split from it......
5th hand doesn't get to split.
the first split always comes from the intial hand creating
the second hand. that is P1
so second split could come from initial hand as it draws again first
if not it comes from the second hand when it draws, which ever way the third hand is created. that is P2
so the third split could come from the initial hand if and only if it is drawing again after having created the third hand or if initial hand draws out then it could come from the second hand when it draws or if the second hand draws out then it would come from the third hand as it draws, which ever way the fourth hand is created. that is P3
so the fourth and final split could come from the intial hand if and only if it is drawing again after having created the fourth hand or if initial hand draws out then it could come from the second hand when it draws or if the second hand draws out then it could come from the third hand as it draws or if the third hand draws out then it could come from the fourth hand as it draws, which ever way the fifth hand is created. that is P4.
make any sense?