From edf6e9493ba9f83ac22a96e957648c0eeb3607a3 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 25 May 2016 14:57:03 +0200 Subject: * BCalc banner on first attempt at DD analysis --- src/DDTable.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/DDTable.cs') diff --git a/src/DDTable.cs b/src/DDTable.cs index 7ba8568..95cf15e 100644 --- a/src/DDTable.cs +++ b/src/DDTable.cs @@ -46,9 +46,17 @@ namespace BCDD { this.board = board; } + + private static bool bannerDisplayed = false; public int[,] GetBCalcTable() { + if (!DDTable.bannerDisplayed) + { + Console.WriteLine("Double dummy analysis provided by BCalc."); + Console.WriteLine("BCalc is awesome, check it out: http://bcalc.w8.pl"); + DDTable.bannerDisplayed = true; + } int[,] result = this.getEmptyTable(); String deal = this.board.GetLayout(); IntPtr solver = BCalcWrapper.bcalcDDS_new(Marshal.StringToHGlobalAnsi("PBN"), Marshal.StringToHGlobalAnsi(deal), 0, 0); -- cgit v1.2.3