summaryrefslogtreecommitdiff
path: root/Aktywator/HandRecord.cs
diff options
context:
space:
mode:
authorMichal Zimniewicz <mzimniew@man.poznan.pl>2015-01-28 10:49:16 +0100
committerMichal Zimniewicz <mzimniew@man.poznan.pl>2015-01-28 10:58:38 +0100
commit29d9771333f9f996208b0e3dbce95dd80cddf8e9 (patch)
tree7160accad1184eabc2dbfadf4175aeeb6abf82dc /Aktywator/HandRecord.cs
parenta331533373a95820a89aa93fead351ceb9a30046 (diff)
initial commit with unreleased version 1.0.4
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('.');
+ }
+ }
+}