• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Bridge anyone? [not off topic]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Bridge anyone? [not off topic]


  • Subject: Fwd: Bridge anyone? [not off topic]
  • From: Bernard Bernu <email@hidden>
  • Date: Thu, 4 Nov 2004 14:49:42 +0100

I sent this email to Emmanuel instead of the list.
I apologise again to have sent a wrong method (see below).

Bernard


Le 3 nov. 04, à 18:28, Emmanuel a écrit :

At 12:11 PM -0500 02/11/04, Graff wrote:

Of the scripts I've seen so far, Bernard's is not only the fastest, but
it supplies each player's cards ready sorted! I still haven't worked out
how it works, though. :-)

Interesting, but I'm not sure if it compromises the randomness of the hands or not

Ken is right to ask. Bernard's algorithm is fast but it does not provide random hands.


For instance the probability that the owner of the 2 of clubs also own the 3 of clubs is obviously much larger than 1/4.

For example on my first test the 2, 3, 4 and 5 of clubs were in the same hand.

Emmanuel
Emmanuel you are (of course) absolutely right. I appologize for posting such stupid alogorithm.
The correct way is to continue to give cards at random to each player. Then for players with more than
13 cards, take at random the additional cards. Then distribute them at random to the players having
less than 13 cards. Unfortunately, even if this is in average very few operations, it needs really more coding
and it takes at the end a longer time and it looses the ordering of the hands. So forget it.


Bernard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

Bernard Bernu
Physique Théorique des Liquides
4, place Jussieu, T24, 2ème
Boîte 121
75252 Paris Cedex 05, France
Tel : (33) 01 44 27 72 38 Fax : (33) 01 44 27 51 00
http://www.lptl.jussieu.fr/users/bernu



_______________________________________________ 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
  • Prev by Date: Re: Bridge anyone? [not off topic]
  • Next by Date: Re: Inheritance and Loaded Libraries (solved)
  • Previous by thread: Re: Bridge anyone? [not off topic]
  • Next by thread: Re: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread