More interesting would be to see the hand using the cards used by Solitaire
or similar
2006/8/29, Dan Bron <[EMAIL PROTECTED]>:
Let's play a little J golf. I'll present the first challenge, the winner
of that challenge gets to present the next.
An old standby: the bridge hand. Find the shortest J sentence that deals
a random bridge hand and formats it like this:
S: AQJ83
H: KJ6
D: 5
C: AQJ5
S: T6542 S: 9
H: AT H: 974
D: QT762 D: A983
C: 4 C: K9732
S: K7
H: Q8532
D: KJ4
C: T86
Here's my tee-off:
,.&:>/<@(,/)@:>"1]3 3$(9$a:)(1 3 5 7)}~<@:>"1
({:&><@({.,': ',(}.\:b i.}.))/.&:(r&,)"1~{.&>)
(-#b)]\([EMAIL PROTECTED]),{'r b'=.;:'SHDC 23456789TJQKA'
That's all one line, and it's composed of 137 characters.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23,
Skype: gosiminn, gsm: +3546985532
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=)
`. )----' (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm