public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState) { Card cardType = currentPlayer.GuessCardTopOfDeck(gameState); Card revealedCard = currentPlayer.DrawAndRevealOneCardFromDeck(); if (revealedCard != cardType) { currentPlayer.MoveAllRevealedCardsToHand(); } else { currentPlayer.MoveRevealedCardsToDiscard(gameState); } }
public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState) { //currentPlayer.gameLog.LogDeck(gameState.players.CurrentPlayer); Card cardType = currentPlayer.GuessCardTopOfDeck(gameState); currentPlayer.RevealCardsFromDeck(1); if (currentPlayer.cardsBeingRevealed.HasCard(cardType)) { currentPlayer.MoveRevealedCardToHand(cardType); } else { currentPlayer.MoveRevealedCardToTopOfDeck(); } }