예제 #1
0
 public GameMaster(Player playerOne, Player playerTwo)
 {
     Log = new List <string>();
     _messageListeners = new HashSet <IGameMessageListener>();
     _playerResults    = new List <PlayerResults>();
     _playerResults.Add(new PlayerResults()
     {
         Player = playerOne
     });
     _playerResults.Add(new PlayerResults()
     {
         Player = playerTwo
     });
     CurrentGame     = new Game(playerOne, playerTwo);
     _deadWoodScorer = new DeadWoodScorer();
     _meldChecker    = new MeldChecker();
 }
예제 #2
0
 public Player(string name)
 {
     Name         = name;
     _hand        = new GinRummyHand();
     _meldChecker = new MeldChecker();
 }