I am trying to write a dealer program that lets the robots open pre-empts with high frequency. The issue I was having is that I can't seem to use the code
dealer(west), so I can't find a way to specify that the hand with the long suit is opener.
I can, of course, get by this by selecting the dealer to always be west, say, but then I would have to keep swapping with my partner to change who's in direct and protective positions.
I was trying to enter something like
(hcp(north) + hcp(south))>=22 and ( (dealer(west) and (clubs(west)>=6 or diamonds(west)>=6)) or (dealer(east) and (clubs(east)>=6 or diamonds(east)>=6)) )