View Code? Open in Web Editor
NEW
A browser-game style game, playable via a REST interface
Kotlin 58.04%
Shell 0.06%
Java 40.85%
Dockerfile 0.05%
TSQL 1.00%
restwars-kotlin's Introduction
./gradlew clean run
Open browser at http://localhost:7777/v1/restwars
Building the documentation
Install asciidoc
cd doc/
asciidoc Webservice.adoc && asciidoc RESTwars.adoc
Open RESTwars.html
and Webservice.html
in browser
Run ./gradlew clean build distTar
Check build/distributions/
docker run -itp 7777:7777 docker.io/phxql/restwars
Open browser at http://localhost:7777/v1/restwars
restwars-kotlin's People
Contributors
Stargazers
Watchers
restwars-kotlin's Issues
FeignException with json encoded messages.
From Dom:
It would be great if you can include following data to the endpoint:
/v1/planet
/v1/planet/:location/building
/v1/planet/:location/construction-site
/v1/planet/:location/hangar
/v1/planet/:location/shipyard
This would make my life much easier!
Idee from Dom:
Ship
Crystal
Gas
Energy
Time
AP
DP
Cargo
Mule
150
200
350
15
5
30
750
Mosquito
100
50
250
10
14
10
100
Colony
600
300
2400
115
0
75
500
When using downloaded files gradle build fails with missing ".git/HEAD" File Error.
Idea from Dom: Shipyard later (create more requirements for shipyard, etc. Command center lvl 5).
Alternative: Create more requirements for colony ship.
Maybe by putting the planet where it has the maximum distance to the other planets.
10 mostquitos vs 13 mosquitos result in both sides being completely destroyed.
This is due to the fact that one mosquito has firepower to destroy 14. Probably one mosquito should only kill one ship at most. (this problem needs verification)
Idea from Dom:
1.0 / Math.pow(x, 1.0/5.0)
โ Function starts at 1 and converges to 0.
client.listBuildings(coords) => BuildingsResponse client.listConstructionSites(coords)) => ConstructionSitesResponse client.listShipsInConstruction(coords)) => ShipsInConstructionResponse
client.listShipsInHangar(coords) => ShipsResponse
Should be ShipsInHangerResponse.