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); } } }
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); } } }
public XoSpace(XoPoint position, XoTable parent) { _position = position; _parent = parent; }