Examples of checkBetOutcome()


Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[1] = 4;
       betAmt[0] = 100;
       point = 0;
       PassLine passLineBet = new PassLine(0);
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, 0);
       Assert.assertEquals(passLineBet.getPayOut(), 200);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);

       diceVal[0] = 7;
       diceVal[1] = 4;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 7;
       diceVal[1] = 4;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 200);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);

       //Test Case:
       //Pass line bet
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       //Player should lose (payout should be 0)
       diceVal[0] = 1;
       diceVal[1] = 1;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);


       diceVal[0] = 1;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 1;
       diceVal[1] = 2;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);

       diceVal[0] = 6;
       diceVal[1] = 6;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 6;
       diceVal[1] = 6;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);

        //Point is not set
        //Dice = 4,5, 6,8,9,10
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

        //Player doesn't win or lose (payout should be 0, bet amount should remain)
       diceVal[0] = 3;
       diceVal[1] = 1;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       diceVal[0] = 4;
       diceVal[1] = 1;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 4;
       diceVal[1] = 1;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       diceVal[0] = 2;
       diceVal[1] = 4;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 2;
       diceVal[1] = 4;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       diceVal[0] = 5;
       diceVal[1] = 3;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 5;
       diceVal[1] = 3;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       diceVal[0] = 6;
       diceVal[1] = 3;
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 6;
       diceVal[1] = 3;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       diceVal[0] = 6;
       diceVal[1] = 4;
View Full Code Here
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.