Solution for task http://www.dragonsofmugloar.com/
-
Project is written in Kotlin language which is a very progressing and convenient JVM language.
-
Maven was selected as build automation tool.
-
For logging purposes, slf4j and logback frameworks are used.
-
For testing purposes, PowerMock, Mockito, Kotlin-Mockito and AssertJ were chosen.
-
Extra libraries include: khttp - is a simple library for HTTP requests in Kotlin; Gson - library for converting Objects into their JSON representation.
Build:
mvn clean package
Run (default game limit is 10):
java -jar dragonsofmugloar-1.0.jar
Run with setting game limit:
java -jar dragonsofmugloar-1.0.jar -limit 100
Logs can be found at:
/tmp/dragonsofmugloar/dragonsofmugloar.log
Logging messages are shown in console as well.