Analyses base layouts against sets of war base rules. It runs this analysis in bulk and provides tabulated results for the current war bases for each member in a clan. Additional to this you can click through to an individual's base to see a more in depth analysis.
Analysis is only allowed for pre-configured clans in the app which are assigned an alias for convenience.
- SBT
- JDK 8+
- Scala 2.11
To find available SBT dependency updates run sbt dependencyUpdates
- All:
sbt test
- Individual:
sbt "test-only org.danielholmes.coc.baseanalyser.baseparser.VillageJsonParserSpec"
- Individual continuous:
sbt ~"test-only org.danielholmes.coc.baseanalyser.baseparser.VillageJsonParserSpec"
sbt 'run-main org.danielholmes.coc.baseanalyser.PrintVillage alpha "I AM SPARTA!!1!"'
sbt 'run-main org.danielholmes.coc.baseanalyser.PrintAttackPlacements alpha "I AM SPARTA!!1!"'
sbt 'run-main org.danielholmes.coc.baseanalyser.ProfileAnalysis alpha "I AM SPARTA!!1!"'
sbt ~tomcat:start
Available at http://localhost:8080
Accessing a clan e.g. http://localhost:8080/clans/alpha
sbt package
then deploy the war as required:
target/scala-2.11/coc-base-analyser_2.11-0.1.war
The app requires a connection to the Supercell servers to query the village json and other clan members. Note that this isn't referring to the official Clash of Clans API, but a direct connection to the game servers how the game does. Once upon a time this project used a product called "Clan Seeker" which has since been discontinued. It's trivial however to write an agent for the app if there's another such service out there:
- Write a new game connection agent that implements the GameConnection Trait
- Wire in the game connection in the Services Trait
At the moment there's a hardcoded stub/testing GameConnection with dummy data
The project is very much in a WIP state. Town Hall 8 is pretty fleshed out but TH9 and above don't have many rules. Also these were modelled off of attack and base building meta from around February 2016. Some newer buildings are also not present such as the Bomb Tower.
Rules are pretty quick to build due to the building blocks and infrastructure of a modelled base being in place.