public Core(XOGameIO io, int rows, int columns, int itemsInRow) { this.io = io; if (rows != columns) { throw new Exception("Некорректный размер поля"); } if (itemsInRow < 2) { throw new Exception("Некорректное число элементов в ряд"); } this.itemsInRow = itemsInRow; this.currentGameState = GameState.stopped; this.field = new Field(rows, columns); }
public Core(XOGameIO io) : this(io, 3, 3, 3) { }