At the dealer site in the Input File section, there is listed a score function that is supposed to be: score(vulnerability, contract, tricks).
It mentions that the contract should be in the form "x4H" with the "x" necessary, but there is no mention of the correct syntax for the vulnerability. I have tried "v", "n", "nv", "1" and "0" (along with removing the "x") and get a syntax error every time.
Does anyone know the correct syntax? Or, perhaps whether this function is not available in mdealer (as opposed to dealer)?
Thanks.
Page 1 of 1
mdealer scoring funtion
#3
Posted 2008-October-30, 13:41
sm = (NV, x4H, tm) produces "unknown variable"
sm = (nv, x4H, tm) produces "syntax error"
Replacing "tm" with 10 produces the same messages.
The script runs fine when this line is commented out.
sm = (nv, x4H, tm) produces "syntax error"
Replacing "tm" with 10 produces the same messages.
The script runs fine when this line is commented out.
#4
Posted 2008-October-30, 16:43
I hope this isn't an insult, but did you leave out the function name?
sm = score(nv, x4H, tm)
sm = score(nv, x4H, tm)
#5
Posted 2008-October-30, 20:58
Stephen Tu, on Oct 30 2008, 05:43 PM, said:
I hope this isn't an insult, but did you leave out the function name?
DOH!
Not insulted. But, embarrassed. Thanks.
Page 1 of 1

Help
