The implementation provides 2 approaches:
- object oriented
- functional (mostly inspired by the book Domain Modeling Made Functional)
Those are represented in the codebase in dedicated packages like object_oriented
or functional
.
- Read input from standard input and explore starting at
1,1
It also stores valid input in the memory. - Query endpoint, i.e.
curl localhost:8080/treasure/11
, to find treasure. The valid input needs to be previously set by Standard Input.
- Test with:
./gradlew check
- Build with:
./gradlew shadowjar
- Run with:
java -jar build/libs/treasure-hunt.jar
- Enjoy ;)