package games.war.behaviors;
import game.Card;
import hand.Hand;
/**
* A behavior where the card will be randomly selected from the hand.
* @author Chris Hersh
*
*/
public class RandomCheating implements CheatingBehavior
{
@Override
public Card getNextCard(Hand currHand)
{
int index = (int) (Math.random() * currHand.getSize());
Card nextCard = currHand.getCard(index);
currHand.removeCard(index);
return nextCard;
}
}