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(); }
public Player(string name) { Name = name; _hand = new GinRummyHand(); _meldChecker = new MeldChecker(); }