예제 #1
0
        public Turn BeginTurn(Game game)
        {
            var scope = game.StartTurn(this);
            var turn  = BeginTurn(scope);

            return(turn);
        }
예제 #2
0
        public void EndGameCleanup(Game game)
        {
            var scope = game.StartTurn(this);

            Hand.Discard(DiscardPile, scope);
            DiscardPile.Into(Deck, scope);
        }
예제 #3
0
        public int CountScore(Game game)
        {
            var scope = game.StartTurn(this);
            int score = 0;

            score = Deck.Aggregate(score, (i, card) => i + card.Score(scope));
            return(score);
        }