It is a simple 5-card hands comparator based on basic rules described by https://en.wikipedia.org/wiki/List_of_poker_hands
- Supports decks that contains wildcard - Allowing Five of a Kind hand evaluation.
- Includes a Deck reset method to start a new game.
- Unit tests based on the Wiki page - all examples.
- Main.class contains a sample usage scenario.
The project is bases on Java 11 and uses Maven as a dependency management tool.
Maven goals could be executed using your local installation or via wrapper (preferred)
Maven Surefire plugin triggers the unit tests and generates Jacoco reports upon completion
./mvnw package
Sonar plugin submits source code and Jacoco reports to a Sonar server (localhost:9000)
./mvnw sonar:sonar
This project uses the following libraries:
- Lombok
- Log4J2
- Slf4J
- JUnit
- Mockito
- Spock