Re: Bridge anyone? [not off topic]
Re: Bridge anyone? [not off topic]
- Subject: Re: Bridge anyone? [not off topic]
- From: David Andrews <email@hidden>
- Date: Mon, 8 Nov 2004 00:28:04 -0500
Nigel,
I thought it was determined a while back that Randomly choosing hands to fill will result in the last hand to fill having a high probability of a run of low clubs.
On Nov 6, 2004, at 8:44 PM, Nigel Garvey wrote:
... on deal()
script o
property chances : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ¬
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ¬
27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, ¬
40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52}
property hands : {{}, {}, {}, {}}
end script
repeat with i from 1 to 52
set c to some integer of o's chances
set item c of o's chances to missing value
set end of item ((c - 1) mod 4 + 1) of o's hands to item i of my
deck
end repeat
return o's hands
end deal
...
This may be a bit unusual, but the odds...
after about a half dozen deals:
{{"9❺", "8❺", "2❺", "Q❸", "10❸", "5❸", "2❸", "A❹", "Q❹", "2❹", "A❻", "K❻", "9❻"}, {"7❺", "3❺", "J❸", "9❸", "7❸", "6❸", "3❸", "K❹", "J❹", "9❹", "8❹", "10❻", "6❻"}, {"A❺", "K❺", "A❸", "K❸", "8❸", "7❹", "6❹", "3❹", "J❻", "5❻", "4❻", "3❻", "2❻"}, {"Q❺", "J❺", "10❺", "6❺", "5❺", "4❺", "4❸", "10❹", "5❹", "4❹", "Q❻", "8❻", "7❻"}}
two more deals:
{{"5❺", "3❺", "2❺", "A❸", "8❸", "4❸", "A❹", "10❹", "9❹", "5❹", "4❹", "Q❻", "J❻"}, {"K❺", "J❺", "9❺", "7❺", "4❺", "Q❸", "10❸", "7❸", "K❹", "8❹", "6❹", "8❻", "6❻"}, {"A❺", "8❺", "6❺", "K❸", "J❸", "9❸", "3❸", "2❸", "Q❹", "J❹", "3❹", "K❻", "7❻"}, {"Q❺", "10❺", "6❸", "5❸", "7❹", "2❹", "A❻", "10❻", "9❻", "5❻", "4❻", "3❻", "2❻"}}
David A
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden