BBO Discussion Forums: mdealer - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

mdealer scoring funtion

#1 User is offline   TimG 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,972
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Maine, USA

Posted 2008-October-30, 09:02

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.
0

#2 User is offline   Stephen Tu 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,153
  • Joined: 2003-May-14

Posted 2008-October-30, 13:10

vul and nv work for me. Don't use any quotes.
0

#3 User is offline   TimG 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,972
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Maine, USA

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.
0

#4 User is offline   Stephen Tu 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,153
  • Joined: 2003-May-14

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)
0

#5 User is offline   TimG 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,972
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Maine, USA

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.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users