public Checker(GameField gameField, IProgramCommunicator communicator) { if (gameField.Parameters.PlayerCount != 1) { throw new ArgumentException("Only one player games are supported"); } GameState = new GameState(gameField); _communicator = communicator; }
// single player only public Checker(GameFieldParams @params, IProgramCommunicator communicator) : this(new GameFieldGenerator(@params, new Random()).Generate(), communicator) { }