• 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: David Andrews <email@hidden>
  • Date: Thu, 4 Nov 2004 20:51:10 -0500

If you move the property new_hands : {} out the script Bridge, then you can check that all hands do not remain sorted:

On Nov 4, 2004, at 3:37 AM, Bernard Bernu wrote:

I thing this is a correct version, but probably not the fastest, but the hands keep sorted. ;-)

property new_hands : {}

script Bridge
property cards : {"AS", "KS", "QS", "JS", "10S", "9S", "8S", "7S", "6S", "5S", "4S", "3S", "2S", ¬
"AH", "KH", "QH", "JH", "10H", "9H", "8H", "7H", "6H", "5H", "4H", "3H", "2H", ¬
"AD", "KD", "QD", "JD", "10D", "9D", "8D", "7D", "6D", "5D", "4D", "3D", "2D", ¬
"AC", "KC", "QC", "JC", "10C", "9C", "8C", "7C", "6C", "5C", "4C", "3C", "2C"}
-- (see above) property new_hands : {}
...

end script
...
tell Bridge to deal()

new_hands -->{{"KS", "9S", "3S", "AH", "JH", "10D", "9D", "6D", "9C", "2D", "KH", "3C", "2C"}, {"10S", "8S", "7S", "6S", "2S", "KH", "4H", "2H", "AD", "KD", "5D", "3D", "5C"}, {"AS", "5S", "10H", "6H", "5H", "3H", "QD", "JD", "8D", "7D", "2D", "AC", "KC"}, {"QS", "JS", "4S", "QH", "9H", "8H", "7H", "4D", "QC", "10C", "JC", "JD", "8C"}}
 _______________________________________________
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>)
 >Re: Bridge anyone? [not off topic] (From: Graff <email@hidden>)
 >Re: Bridge anyone? [not off topic] (From: Emmanuel <email@hidden>)
 >Re: Bridge anyone? [not off topic] (From: Bernard Bernu <email@hidden>)

  • Prev by Date: Re: [~ot] those pesky invisible folders ...
  • Next by Date: set scan rate in dvd player?
  • Previous by thread: Re: Bridge anyone? [not off topic]
  • Next by thread: Re: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread