Package games.war.behaviors

Source Code of games.war.behaviors.NotCheating

package games.war.behaviors;

import game.Card;
import hand.Hand;

/**
* An honest behavior, will only pick the top most card of their hand
* @author Chris Hersh
*
*/
public class NotCheating implements CheatingBehavior
{

    @Override
    public Card getNextCard(Hand currHand)
    {
        Card nextCard = currHand.getCard(0);
        currHand.removeCard(0);
        //System.out.println(currHand);
        return nextCard;
    }

}
TOP

Related Classes of games.war.behaviors.NotCheating

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.