summaryrefslogtreecommitdiff
path: root/src/DDTable.cs
diff options
context:
space:
mode:
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();
+ }
}
}