Exemplo n.º 1
0
        public IGameBuilderSetSecondPlayer FirstPlayerSet(IPlayerType playerType)
        {
            var player = playerType.Player;

            _players = _players.Add(player);
            _startingPlayerMapper = _startingPlayerMapper.Add(StartingPlayer.As().FirstPlayer(), player);
            return(this);
        }
Exemplo n.º 2
0
        public void store_a_player()
        {
            _players.Add(_playerA);

            Assert.That(_players.GetNextPlayer(), Is.EqualTo(_playerA));
        }
Exemplo n.º 3
0
 private void CreatePlayers(string[] players)
 {
     Array.ForEach(players, player => _players.Add(new Player(player, 0, 0)));
 }