summaryrefslogtreecommitdiff
path: root/Aktywator/HandRecord.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/HandRecord.cs')
-rw-r--r--Aktywator/HandRecord.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/Aktywator/HandRecord.cs b/Aktywator/HandRecord.cs
new file mode 100644
index 0000000..bd0e9f9
--- /dev/null
+++ b/Aktywator/HandRecord.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Aktywator
+{
+ class HandRecord
+ {
+ public string[] north;
+ public string[] east;
+ public string[] south;
+ public string[] west;
+
+ public HandRecord()
+ {
+ north = new string[4];
+ east = new string[4];
+ south = new string[4];
+ west = new string[4];
+ }
+
+ public HandRecord(string pbnString)
+ {
+ string[] hand = pbnString.Split(' ');
+ north = hand[0].Split('.');
+ east = hand[1].Split('.');
+ south = hand[2].Split('.');
+ west = hand[3].Split('.');
+ }
+ }
+}