|
@@ -29,25 +29,29 @@ public class HigherCards extends CardGame implements Gambling{
|
29
|
29
|
Card acard = deck.draw();
|
30
|
30
|
Rank rank = acard.getRank();
|
31
|
31
|
int player = rank.getValue();
|
|
32
|
+ String playervalueString=rank.toString();
|
32
|
33
|
Suit suit = acard.getSuit();
|
33
|
34
|
String suitString = suit.toString();
|
34
|
35
|
|
35
|
|
- aConsole.println("Your suit is :");
|
|
36
|
+ aConsole.println("You got :%s of %s",playervalueString,suitString);
|
|
37
|
+ /*aConsole.println("Your suit is :");
|
36
|
38
|
aConsole.print(suitString);
|
37
|
39
|
aConsole.println("\nYour rank is :");
|
38
|
40
|
String rankValue = rank.toString();
|
39
|
|
- aConsole.println(rankValue);
|
|
41
|
+ aConsole.println(rankValue);*/
|
40
|
42
|
|
41
|
43
|
Card acard2 = deck.draw();
|
42
|
44
|
Rank rank2 = acard2.getRank();
|
|
45
|
+ String playervalueString2=rank2.toString();
|
43
|
46
|
Suit suit2 = acard2.getSuit();
|
44
|
47
|
String suitString2 = suit2.toString();
|
45
|
48
|
int croupier = rank2.getValue();
|
46
|
|
- aConsole.println("\n\nHouse suit is :");
|
|
49
|
+ aConsole.println("House got :%s of %s",playervalueString2,suitString2);
|
|
50
|
+ /*aConsole.println("\n\nHouse suit is :");
|
47
|
51
|
aConsole.print(suitString2);
|
48
|
52
|
aConsole.println("\nHouse rank is :");
|
49
|
53
|
String rankValue2 = rank2.toString();
|
50
|
|
- aConsole.println(rankValue2);
|
|
54
|
+ aConsole.println(rankValue2);*/
|
51
|
55
|
|
52
|
56
|
int totalChips = aPlayer.getTotalChips();
|
53
|
57
|
int newTotalChips = findWinner(player, croupier, wageAmount, totalChips);
|