summaryrefslogtreecommitdiff
path: root/src/PBNBoard.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/PBNBoard.cs')
-rw-r--r--src/PBNBoard.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/PBNBoard.cs b/src/PBNBoard.cs
index 72f87a4..d60bfe3 100644
--- a/src/PBNBoard.cs
+++ b/src/PBNBoard.cs
@@ -187,7 +187,16 @@ namespace BCDD
public void WriteMinimax(ParContract contract)
{
- this.Fields.Add(new PBNField("Minimax", String.Format("{0}{1}{2}{3}{4}", contract.Level, contract.Denomination, contract.Doubled ? "D" : "", contract.Declarer, contract.Score)));
+ String minimax;
+ if (contract.Score == 0)
+ {
+ minimax = "7NS0";
+ }
+ else
+ {
+ minimax = String.Format("{0}{1}{2}{3}{4}", contract.Level, contract.Denomination, contract.Doubled ? "D" : "", contract.Declarer, contract.Score);
+ }
+ this.Fields.Add(new PBNField("Minimax", minimax));
}
public String GetOptimumScore()