- Install Scala 2.13.14
- Install SBT 1.9.8
Implementations can be found in the packages com.tst.challenge.domain and models in com.tst.challenge.model.
Problem 1 is defined in CruisePriceService and Problem 2 in CruisePromotionService.
Assumptions are documented in the methods of the classes.
To run the tests, execute the following command:
sbt test
To run the solutions, execute the following commands:
# Outputs the result of problem 1 to stdout
sbt problem1
# Outputs the result of problem 2 to stdout
sbt problem2