summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-03 00:20:43 +0200
committeremkael <emkael@tlen.pl>2016-06-03 00:20:43 +0200
commitc2d8fb32ecc0cae6432c046e0dc960343ade49f9 (patch)
treec99b75ec04c5dc45442626a1c9396f990e1c3eff
parent5395bb1cd5a259c94e7ebc6da02d4e822763a170 (diff)
* vulnerability determination fix
-rw-r--r--src/ParScore.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ParScore.cs b/src/ParScore.cs
index b1561fc..a3705fd 100644
--- a/src/ParScore.cs
+++ b/src/ParScore.cs
@@ -121,8 +121,9 @@ namespace BCDD
{
return nsPlaying ? nsHighest.Validate() : ewHighest.Validate();
}
- bool defenseVulnerability = this.determineVulnerability(vulnerability, nsPlaying ? 'E' : 'N');
ParContract highest = nsHighest.Higher(ewHighest) ? nsHighest : ewHighest;
+ nsPlaying = ('N'.Equals(highest.Declarer) || 'S'.Equals(highest.Declarer));
+ bool defenseVulnerability = this.determineVulnerability(vulnerability, nsPlaying ? 'E' : 'N');
ParContract highestDefense = highest.GetDefense(ddTable, defenseVulnerability);
if (highestDefense != null)
{