thomasoa / andrews-deal

Automatically exported from code.google.com/p/andrews-deal
Other
10 stars 6 forks source link

DDS is incorrect on certain hand/lead combinations #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using deal 3.1.9 run the following script:
south is {K9862 873 98 J74}
north is {Q73 AQ52 762 Q83}
west is {J JT94 AJ5 AT652}

#Similar bug for same South with North as {T53 AKT KT62 Q96} and West is {7 
Q942 AQJ74 T82}

proc write_deal {} {
    formatter::write_deal
    set SK [dds -leader south -trick KS east notrump]
    puts "On SK you get $SK for east"
}

main {
    accept
}

What is the expected output? What do you see instead?

I expect to see some number of tricks for East in the 8-10 range, not 0 tricks 
for east.

What version of the product are you using? On what operating system?
deal 3.1.9 on windows 7

Please provide any additional information below.
The only ones I noticed for this were spade K leads with stiff spade in West, A 
of spade in East, against the 3nt contract from the East, where it seems dds 
thinks E/W will win 0 tricks.

This was from a lead problem for the July master solvers program.

Original issue reported on code.google.com by mbod...@gmail.com on 25 May 2015 at 6:51

GoogleCodeExporter commented 9 years ago
It may only be on the first run that has this problem.  If I run the sample 
program 10 times, only the first run is broken.

Original comment by mbod...@gmail.com on 25 May 2015 at 7:10