Re: Bridge anyone? [not off topic]
Re: Bridge anyone? [not off topic]
- Subject: Re: Bridge anyone? [not off topic]
- From: Nigel Garvey <email@hidden>
- Date: Wed, 3 Nov 2004 11:52:01 +0000
kai wrote on Tue, 2 Nov 2004 21:39:55 +0000:
>On Tue, 2 Nov 2004 17:47:17 +0800, Bill <email@hidden> wrote:
>
>> May I suggest a unicode version of cards ;)
>
>Cute! (Or, as Martin Orpen reacted: "Yeah, pictures!") :-)
>
>Anyone whose email app displayed the results of Bill's suggestion as
>gobbledygook might like to check out the html version here:
>
>http://lists.apple.com/archives/applescript-users/2004/Nov/msg00040.html
Sadly, this only seems to work in Panther. It causes both 1.9 and 2.0
(v36) versions of Script Editor to quit suddenly in Jaguar, AS 1.9.1.
>Finally (so far), on Tue, 2 Nov 2004 20:48:04 +0000, Nigel came back
>with:
Ok. One more squeeze: :-)
on shuffleNdeal()
script o
property deck : {"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"}
property shuffledDeck : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
¬
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ¬
27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, ¬
40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52}
end script
repeat with i from 1 to 52
set o's shuffledDeck's item (o's shuffledDeck's some integer) to
o's deck's item i
end repeat
return a reference to o's shuffledDeck's ¬
{items 1 thru 13, items 14 thru 26, items 27 thru 39, items 40 thru
52}
end shuffleNdeal
set {north, east, south, west} to shuffleNdeal()
NG
_______________________________________________
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