A config.properties file is provided to conifgure and tune certain properties The time between each random number is generated can be configured - default to 30 seconds
The input file path to the game is also configurable. Need to make sure it points to the correct path.
mvn clean verify
- Run from terminal/Command line
cd target/classes
and then run:
java -cp ".:lib/*" Roulette
- Run from IDE
Main class in Roulette.java
if game is run from terminal, ctrl-c
or similar will kill the program, likewise when run from IDE can be stopped from IDE controls
Logging is available and SLF4j is used with Log4j the implementation
The logging level can be changed in the log4j.properties
file according to needs.
Currently set to DEBUG level.
The log file is output.log
- There is a single console for both reading in lines and outputting betting results
- The system console is from a terminal window/command line
- The game once started will run indefinitely, until it is stopped
- Performance is not considered
- Same player can place another bet (but the new bet will override the previous bet)
- Input file would be correctly configured and loaded with all data on startup