TimG Posted October 30, 2008 Report Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
Stephen Tu Posted October 30, 2008 Report Share Posted October 30, 2008 vul and nv work for me. Don't use any quotes. Quote Link to comment Share on other sites More sharing options...
TimG Posted October 30, 2008 Author Report Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
Stephen Tu Posted October 30, 2008 Report Share Posted October 30, 2008 I hope this isn't an insult, but did you leave out the function name? sm = score(nv, x4H, tm) Quote Link to comment Share on other sites More sharing options...
TimG Posted October 31, 2008 Author Report Share Posted October 31, 2008 I hope this isn't an insult, but did you leave out the function name? DOH! Not insulted. But, embarrassed. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.