Пример #1
0
        public Player(string name, IStickersBoard stickersBoard, ICoin coin, TokensPull tokensPull)
        {
            Name           = name;
            _stickersBoard = stickersBoard;
            _coin          = coin;
            _tokensPull    = tokensPull;

            Id = Guid.NewGuid();
        }
Пример #2
0
        public Game(
            int playersCount,
            int inProgressSteps,
            int?wipLimit,
            int roundsCount)
        {
            _roundsCount  = roundsCount;
            _tokensPull   = new TokensPull();
            StickersBoard = new StickersBoard(new Scale(inProgressSteps), wipLimit);

            _players = new List <Player>();
            for (var i = 0; i < playersCount; i++)
            {
                _players.Add(new Player("P", StickersBoard, new Coin(), _tokensPull));
            }
        }