summaryrefslogtreecommitdiff
path: root/Aktywator/HandRecord.cs
blob: bd0e9f924e9192e9e24d645a2d5b813880121877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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('.');
        }
    }
}