diff options
Diffstat (limited to 'java/demo/Freeze/casino/Client.java')
-rw-r--r-- | java/demo/Freeze/casino/Client.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/java/demo/Freeze/casino/Client.java b/java/demo/Freeze/casino/Client.java index d5e5965c31f..0f0fd53bf95 100644 --- a/java/demo/Freeze/casino/Client.java +++ b/java/demo/Freeze/casino/Client.java @@ -9,6 +9,14 @@ public class Client extends Ice.Application { + // + // Number of bets placed by each player + // You can (should) increase these values by a factor of 5 or more + // on a fast system + // + static final int betCount1 = 100; + static final int betCount2 = 20; + private void printBalances(Casino.PlayerPrx[] players) { @@ -79,10 +87,10 @@ public class Client extends Ice.Application System.out.println("All chips accounted for? " + (bank.checkAllChips() ? "yes" : "no")); - System.out.print("Create 500 10-chips bets... "); + System.out.print("Create " + betCount1 + " 10-chips bets... "); System.out.flush(); - for(int b = 0; b < 500; ++b) + for(int b = 0; b < betCount1; ++b) { Casino.BetPrx bet = bank.createBet(10, 200 + random.nextInt(4000)); for(int i = 0; i < players.length; ++i) @@ -147,10 +155,10 @@ public class Client extends Ice.Application System.out.println("Live bets: " + bank.getLiveBetCount()); - System.out.print("Create 100 10-chips bets... "); + System.out.print("Create " + betCount2 + " 10-chips bets... "); System.out.flush(); - for(int b = 0; b < 100; ++b) + for(int b = 0; b < betCount2; ++b) { Casino.BetPrx bet = bank.createBet(10, 200 + random.nextInt(4000)); for(int i = 0; i < players.length; ++i) |