-----Original Message-----
From: David Ward Lambert [mailto:b49p23t...@stny.rr.com] 
Sent: Thursday, January 05, 2012 12:44 PM
To: Linda Alvord
Subject: jsoftware bridge deal challenge

NB. Our doles are similar
NB. The LA versions contain more 4s, 13s and 52s
NB. therefor the DWL versions are more general.
NB. doledwl is hard coded for 4 hands.

's c'=: ;:'shdc AKQJT98765432'
vdeckdwl=: [: |: [: ,/ ,"0~/
deckdwl=: s vdeckdwl c
mixdwl=: ({~ [: ?~ #)"1
doledwl=: [: |:"2 [: ({~ [: |: _4 [\ [: i. #) |:

NB. number_of_hands doledwl2 deck
NB. works for number of hands as a factor of the number of cards
doledwl2=: 4&$: :(4 : '([: |:"2 [: ({~ [: |: (-x) [\ [: i. #) |:)y')

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to