コード例 #1
0
ファイル: Game.cs プロジェクト: Roonerelli/Shithead
        private void CheckNextPlayerCanPlay()
        {
            var         nextPlayer      = GetNextPlayer();
            List <Card> inPlayCards     = GetActiveHandPart(nextPlayer);
            Card        topOfPickUpPack = PickUpPack != null && PickUpPack.Count > 0 ? PickUpPack.Last() : null;

            nextPlayer.IsAbleToPlay = nextPlayer.PlayerState.Equals(PlayerState.PlayingFaceDownCards) || RuleEngine.AreAnyCardsPlayable(inPlayCards, topOfPickUpPack);
        }