public PieceGenerator(GameMasterBoard board, double shamProbability, double spawnFrequency)
 {
     _board           = board;
     _shamProbability = shamProbability;
     SpawnTimer       = new Timer(SpawnPiece, null, TimeSpan.FromSeconds(1),
                                  TimeSpan.FromMilliseconds(spawnFrequency));
 }
Beispiel #2
0
 /// <summary>
 ///     Only for tests
 /// </summary>
 public GameMaster(GameMasterBoard board, Dictionary <Guid, int> playerGuidToId)
 {
     _gameHost       = new GameHost(board);
     _playerGuidToId = playerGuidToId;
     _actionHandler  = new ActionHandlerDispatcher(Board, new KnowledgeExchangeManager());
 }