I need a main method to run this program, it needs to be injava.
This is the code,
public class Pig
{
public static void main(String args[]){
Pig game = new Pig();
}
private GVdie d1;
private GVdie d2;
private int computerScore;
private int playerScore;
private int currentRoundScore;
final int WINNING_SCORE = 100;
private boolean playerTurn;
public Pig()
{
System.out.println(“Ready to play Pig?”);
d1 = new GVdie(100);
d2 = new GVdie(100);
computerScore = 0;
playerScore = 0;
currentRoundScore = 0;
playerTurn = true;
}
//Returns currentRoundScore
public int getRoundScore()
{
return currentRoundScore;
}
//Returns playerScore
public int getPlayerScore ()
{
return playerScore;
}
//Returns computerScore
public int getComputerScore()
{
return computerScore;
}
public void rollDice()
{
d1.roll();
d2.roll();
System.out.println(“die1: ” + d1.getValue() + ” die2: ” +d2.getValue());
if (d1.getValue() == 1 || d2.getValue() == 1){
currentRoundScore = 0;
}
else {
currentRoundScore += (d1.getValue() + d2.getValue());
}
System.out.println(“Current Round
PayPal Gateway not configured
PayPal Gateway not configured