diff options
author | Michał Klichowicz <emkael@tlen.pl> | 2023-11-05 18:08:51 +0100 |
---|---|---|
committer | Michał Klichowicz <emkael@tlen.pl> | 2023-11-05 18:08:51 +0100 |
commit | 50f18e08e71fef4992fb7df32fdee8ac142f181a (patch) | |
tree | d3fab74ec9746a6da4d46760e325861b08932c61 /src/DDTable.cs | |
parent | 86b5e6fab4f7d223d30f0b370020a6ba42cb8d05 (diff) |
Parallel per-board processing
Diffstat (limited to 'src/DDTable.cs')
-rw-r--r-- | src/DDTable.cs | 23 |
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();
+ }
}
}
|