Scala Bootcamp task by Genrihs Saruhanovs
In order to compile the project, JDK of version 8+ installation is required. Also, environmental variables JAVA_HOME and PATH must be updated with corresponding installation folder
To compile the project, clone this repository and navigate to src folder of the project. Then execute javac com/company/Poker.java to compile the project
In case of issues with compiling, compiled project is located under Poker/Poker/out/production/Poker/com/company/ directory
Program execution can be triggered using such command: java com/company/Poker.java
Omaha command line switch is implemented, executing java com/company/Poker.java --omaha - will switch to omaha holdem rules
Below exceptions are handled:
- Check if board card amount is equal to 5
- Check if hand amount is equal to 2 or 4 depending on rules
- Check if card is specified correctly
- Check if all ranks are specified correctly
- Check if all suits are specified correctly
- Check if there is any duplicate cards
There is no validation on max card amount, but it should be handled either via suit/rank validation or duplicate card validation