diff options
Diffstat (limited to 'src/DDTable.cs')
-rw-r--r-- | src/DDTable.cs | 8 |
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);
|