Skip to content

It's a simple java proyect that downloads your entire battle history and stores the information in a local 'db'. With that information stored, in the app you can see metrics related to your performance, crown average and the decks that give you the best results.

Notifications You must be signed in to change notification settings

alxgarci/ClashRoyale-Database-BattleAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clash Royale Database - Battle Analyzer on Java

Introduction

This is a proyect to show the potential of Java in use of jcrapi2 wrapper. It's a simple java proyect that downloads your entire battle history and stores the information in a local 'db'. Every time you run the db writing, it adds on top, so you can have as much stored battles as you wish.

With that information stored, in the app its shown metrics related to your perform, crown average and the decks that give you the best results.

Features

  • Form your local battle database from your recent matches
  • Get metrics on all your battles stored in the database
  • More to add . . . (Accepting suggestions)

Use

The menu just goes by an Integer input to select the option. If there are any Player and Clan Tag stored in the .properties, it will be loaded on start.

To input the tags, just add them on the .properties manually or add it on the option '1'

menu

Retrieve recent match history

This method creates a local file to store recent matches played on the previous '#00000' player.

GetPlayerBattleLogResponse getPlayerBattleLogResponse = api.getPlayerBattleLog(
GetPlayerBattleLogRequest.builder(clanTag).playerTag(playerTag)
.build());

It retrieves the matches using the method from jcrapi2 previously mentioned, and converting it to get only the wanted information

getting battle history

Printing the database

Database is stored on PROYECTFOLDER/tmp/*.db, can be read during execution

printing the database

Getting some stats

By watching the whole locally stored database, we can get our most used decks, average crowns and trophies by deck (more coming soon...). Some basic stats.

printing the database

Requirements

  • Java JDK or JRE

  • Downloading last executable .jar

  • In cmd/console:

    java -jar CRdb_Analyzer_v[VERSION].jar
    

Used libraries

About

It's a simple java proyect that downloads your entire battle history and stores the information in a local 'db'. With that information stored, in the app you can see metrics related to your performance, crown average and the decks that give you the best results.

Topics

Resources

Stars

Watchers

Forks

Languages