summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-25 14:57:03 +0200
committeremkael <emkael@tlen.pl>2016-05-25 14:57:03 +0200
commitedf6e9493ba9f83ac22a96e957648c0eeb3607a3 (patch)
tree86f15099592fb9390cba657ced69cbe782de7606
parentfe02c3378117ae01776e6b4f278ace6b90e3391c (diff)
* BCalc banner on first attempt at DD analysis
-rw-r--r--src/DDTable.cs8
1 files changed, 8 insertions, 0 deletions
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);