Idea: Get each person’s brawl stars profile id, get best maps (trophy win/loss), and get each user’s best brawlers.
How the code works:
Use playerIDD of each user to make a get request to /players/{playerTag}/battlelog endpoint, to get the most recent battles. Then, for each map the user has played, update a dictionary with the key of the mapname, and a value of the trophy count.
For each match iterated through, update the trophy count for that map
At the end, find the key with the maximum trophy count, and output that to the user as their best map. We can also output matches played there, and total trophy gain etc etc.
For best brawlers, iterate through all /players/{playerTag}, and find the top 5 brawlers with the highest trophy count, then output that data to the user.
How it's going to function at night at the museum:
We will ask people to pull out their phones and open up their brawl stars account(popular mobile game at school). Than after going into profile settings we’ll get there playerID, Mine is #JG2QC2R
Then we will go into their match history/brawlers etc, and then be able to prove that our api is calling and sorting their data successfully, and outputting all of the correct information. Which the person walking up at night at the museum can cross verify.
BRAWLSTARS API
Idea: Get each person’s brawl stars profile id, get best maps (trophy win/loss), and get each user’s best brawlers.
How the code works:
For best brawlers, iterate through all /players/{playerTag}, and find the top 5 brawlers with the highest trophy count, then output that data to the user.
How it's going to function at night at the museum: