• 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: Martin Orpen <email@hidden>
  • Date: Fri, 05 Nov 2004 09:53:17 +0000

on 5/11/04 7:59 am, kai wrote:

> Though still an if/else routine, this more direct approach is faster,
> Martin:
>
> ----------------------------------
>
> if some item of {true, false} then
> set newDeck's end to contents of x
> else
> set newDeck's beginning to contents of x
> end if
>
> ----------------------------------

Cheers Kai - I've already incorporated this into the script as somebody sent
me the very same tip off-list.

I've also added the following simple dealing routine:

set theHands to {{"-East:"}, {"-North:"}, {"-West:"}, {"-South"}}
repeat 13 times
    repeat with H in every list of theHands
        set end of H to item 1 of my shuffDeck
        set shuffDeck to the rest of shuffDeck
    end repeat
end repeat

Which allows me to shuffle and deal in around 4 seconds on a 1.25GHz boko.

But is there an efficient AS way to sort the individual hands. I've already
posted a method of doing this using the shell - but that's cheating :-)

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com


 _______________________________________________
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

References: 
 >Re: Bridge anyone? [not off topic] (From: kai <email@hidden>)

  • Prev by Date: Re: get ip proxy and port
  • Next by Date: Re: [~ot] those pesky invisible folders ...
  • Previous by thread: Re: Bridge anyone? [not off topic]
  • Next by thread: Re: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread