From df318093a899583fd434a451d51e0618fe69d96b Mon Sep 17 00:00:00 2001 From: Michal Zimniewicz Date: Wed, 28 Jan 2015 10:49:16 +0100 Subject: initial commit with not released version 1.0.4 --- Aktywator/HandRecord.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Aktywator/HandRecord.cs (limited to 'Aktywator/HandRecord.cs') 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('.'); + } + } +} -- cgit v1.2.3