How do I set values for a class without using any setter methods?
- by fari
Please can anyone help me
public class KalaGameState implements Cloneable
{
// your code goes here
public KalaGameState(int startingStones) throws InvalidStartingStonesException
{
// your code goes here
}
public int getTurn()
{
// your code goes here
}
public int getKala(int playerNum) throws IllegalPlayerNumException
{
// your code goes here
}
public int getNumStones(int sidePitNum) throws IllegalSidePitNumException
{
// your code goes here
}
public int getNumStones(int playerNum, int sidePitNum) throws IllegalPlayerNumException,
IllegalSidePitNumException
{
// your code goes here
}
public int getScore(int playerNum) throws IllegalPlayerNumException
{
// your code goes here
}
private int getSidePitArrayIndex(int sidePitNum) throws IllegalSidePitNumException
{
// your code goes here
}
public boolean gameOver()
{
// your code goes here
}
public void makeMove(int sidePitNum) throws IllegalSidePitNumException, IllegalMoveException
{
// your code goes here
}
}