summaryrefslogtreecommitdiff
path: root/src/DDTable.cs
diff options
context:
space:
mode:
authorMichał Klichowicz <emkael@tlen.pl>2023-11-05 18:08:51 +0100
committerMichał Klichowicz <emkael@tlen.pl>2023-11-05 18:08:51 +0100
commit50f18e08e71fef4992fb7df32fdee8ac142f181a (patch)
treed3fab74ec9746a6da4d46760e325861b08932c61 /src/DDTable.cs
parent86b5e6fab4f7d223d30f0b370020a6ba42cb8d05 (diff)
Parallel per-board processing
Diffstat (limited to 'src/DDTable.cs')
-rw-r--r--src/DDTable.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/DDTable.cs b/src/DDTable.cs
index c2ffcd1..1e21cee 100644
--- a/src/DDTable.cs
+++ b/src/DDTable.cs
@@ -152,5 +152,28 @@ namespace BCDD
Console.WriteLine();
}
}
+
+ public static string ShortFormat(int[,] ddTable)
+ {
+ StringBuilder s = new StringBuilder();
+ for (int i = 0; i < 4; i++)
+ {
+ s.Append(BCalcWrapper.PLAYERS[i]);
+ s.Append(" ");
+ for (int j = 0; j < 5; j++)
+ {
+ s.Append(ddTable[i, j]);
+ if (j < 4)
+ {
+ s.Append("-");
+ }
+ }
+ if (i < 3)
+ {
+ s.Append(" ");
+ }
+ }
+ return s.ToString();
+ }
}
}