// this abstract class represents any player of the game // they must be able to resturn their name and havs some // way of deciding to roll or to stay public abstract class PigPlayer { protected int score; // return true if player is rolling, and false if player is staying abstract public boolean rollOrStay(int playerScore, int opponentScore, int roundScore); // called to get the name of the player abstract public String getName(); // adds an amount to the player's score public void addToScore(int amount) { score += amount; } // return the player's score public int getScore() { return score; } }