a Java submission for War-O as a code exercise
- this project uses:
- Java 8 streams
- Java 10
var
- Java 15 (second preview)
record
- Java 15 (preview)
sealed
- goals include:
- API/remote strategy (called in the background, via
CompleteableFuture
)- see here for implementation
- functional style
- immutable objects (not necessarily efficient)
- minimal use of for-loops
- API/remote strategy (called in the background, via
- Spring's Java configuration is used to configure players
- requires JDK 15
useful commands:
./gradlew clean test
- on Windows, use
gradlew.bat
- on Windows, use
./gradlew run
./gradlew build
See test output in ~/build/reports/tests/index.html
See executable zip in ~/build/distributions
- configure
src/main/java/org/peidevs/waro/config/Config.java
./gradlew run
- on Windows, use
gradlew.bat
- on Windows, use
Rules are here.