Пример #1
0
 private void SetupSpacesForTable(XoTable table)
 {
     for (var i = 0; i < 3; i++)
     {
         for (var j = 0; j < 3; j++)
         {
             var space = new XoSpace(new XoPoint(i, j), table);
             table.AddSpace(space);
             Spaces.Add(space);
         }
     }
 }
Пример #2
0
 private void SetupXoTables()
 {
     Tables = new List<XoTable>();
     Spaces = new List<XoSpace>();
     for (var i = 0; i < 3; i++)
     {
         for (var j = 0; j < 3; j++)
         {
             var table = new XoTable(new XoPoint(i, j));
             Tables.Add(table);
             SetupSpacesForTable(table);
         }
     }
 }
Пример #3
0
 public XoSpace(XoPoint position, XoTable parent)
 {
     _position = position;
     _parent = parent;
 }