Beispiel #1
0
        private String GetString(MikMak.Commons.GridState a)
        {
            char[] allData = new char[9];
            for (int i = 0; i < 9; i++)
            {
                allData[i] = 'O';
            }

            foreach (var item in a.PawnLocations)
            {
                int i = item.Coord.x - 1 + 3 * (item.Coord.y - 1);
                allData[i] = item.Name;
            }
            return(new string(allData));
        }
Beispiel #2
0
 private void ShowResult(MikMak.Commons.GridState d)
 {
     this.textBox1.Text       = GetString(d);
     this.textBoxshowRes.Text = d.CurrentMessage.Information;
 }