Package main
Class BetMain
java.lang.Object
main.BetMain
Entry point for simulating a betting organization, generating random game results,
and calculating and displaying customer betting results.
The main.BetMain class orchestrates the betting simulation by creating dummy data
for bets and customers, assigning random results to each bet, calculating gains for
each customer based on their betting outcomes, and displaying the results in the console.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BetMain
public BetMain()
-
-
Method Details
-
main
Main method that drives the betting simulation process.This method initializes the betting organization, generates dummy data for both bets and customers, assigns random game results to each bet, calculates each customer’s gains based on their bet outcomes, and finally displays and saves the results.
Steps:
- Creates a list of bets and shuffles them for randomness.
- Generates and adds dummy customers and assigns random bets to them.
- Generates random game results using the
GameEmulatorsingleton instance. - Calculates and updates gains for each customer based on their bet outcomes.
- Displays the results and saves them to a file using the
BetOrganizationsingleton instance.
- Parameters:
args- Command-line arguments (not used).
-