Re: Bridge anyone? [not off topic]
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