From fe02c3378117ae01776e6b4f278ace6b90e3391c Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 25 May 2016 14:10:41 +0200 Subject: * "all pass" special value in Minimax tag --- src/PBNBoard.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3