package com.example;

public class SimpleCraps implements BettingGame {

	@Override
	public int playGame(int betAmount) {
		// TODO Add your code here. Return the amount the user won (or a negative number if they lost!)
		
		//To create a die, use:
		//Die die = new Die();
		
		//To roll the die you created, use:
		//int rollResult = die.roll();
		
		//If the result is a win, return betAmount:
		//return betAmount;
		
		//If the result is a loss, return -betAmount:
		//return -betAmount;
		
		//If the result is a draw, return 0:
		return 0;
	}

	@Override
	public String getGameName() {
		return "SimpleCraps";
	}

}

@@ -117,16 +117,902 @@
 nt) %7B%0A%09%09
+%0A%09%09int rollTotal=0;%0A%09%09int finalTotal=0;%0A%09%09int player1Total=0;%0A%09%09int player1final=0;%0A%09%09%0A%09%09while(rollTotal!=7) %7B%0A%09%09%09// TODO Auto-generated method stub%0A%09%09%09Die die1=new Die(); %0A%09%09%09Die die2=new Die(); %0A%09%09%09rollTotal=die1.roll()+die2.roll();%0A%09%09%09System.out.println(%22The total is: %22 + rollTotal);%0A%09%09%09finalTotal+=rollTotal;%0A%09%09%7D%0A%09%09%0A%09%09System.out.println(finalTotal);%0A%09%09%0A%09%09while(player1Total!=7) %7B%0A%09%09%09// TODO Auto-generated method stub%0A%09%09%09Die die1=new Die(); %0A%09%09%09Die die2=new Die(); %0A%09%09%09player1Total=die1.roll()+die2.roll();%0A%09%09%09System.out.println(%22The total is: %22 + player1Total);%0A%09%09%09player1final+=player1Total;%0A%09%09%7D%0A%09%09%0A%09%0A%09System.out.println(player1final);%0A%09%0A%09%0A%09if (player1final%3EfinalTotal)%7B%0A%09%09System.out.println(%22The player wins: %22+player1final);%0A%09%7D else if (player1final%3CfinalTotal) %7B%0A%09%09System.out.println(%22The player loses: -%22+player1final);%0A%09%7D else System.out.println(%22It's a draw: %22 + 0);%0A%09%7D%0A%09%0A%09
 // TODO 

Update SimpleCraps.java