• 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
Re: Bridge anyone? [not off topic]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bridge anyone? [not off topic]


  • Subject: Re: Bridge anyone? [not off topic]
  • From: Graff <email@hidden>
  • Date: Tue, 02 Nov 2004 12:11:13 -0500

On Nov 2, 2004, at 11:42 AM, Nigel Garvey 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. :-)

It looks like it (the quicker of the two scripts) chooses a random hand to put a card in, then it puts the top card of the sorted set into that hand. If the hand is already full then it removes the hand from the list of available hands. Interesting, but I'm not sure if it compromises the randomness of the hands or not since you are relying on a random number from 1 to 4 rather than from 1 to 52 and if some hands get full first then the rest of the hands will tend to have more cards from a single suit.


Very interesting though.

- Ken

_______________________________________________
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


  • Follow-Ups:
    • Re: Bridge anyone? [not off topic]
      • From: Emmanuel <email@hidden>
References: 
 >Re: Bridge anyone? [not off topic] (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Inheritance and Loaded Libraries
  • Next by Date: Re: OmniGraffle - Insert Image
  • Previous by thread: Re: Bridge anyone? [not off topic]
  • Next by thread: Re: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread