LLM usage: 30% (Sonnet 4.5)
AoE 4 Stats derives new statistics from the AoE 4 World API to show more in-depth insights related to the Age of Empires 4 Real Time Strategy game.
I built this to explore Elixir and Phoenix in a way that relates to my passion for RTS games.
The app is pulling data from another Age Of Empires IV API and tranforming it in ways to yield stastical data that is not available elsewhere. The player data relates to the 1v1 ladder performance in the game, the top players on the leaderboard and more generally the relationship betweens maps and civilizations. The app is hosted on Fly.io.
- The Map Win Rate section aggregates stasistics for each map, civilization and league bracket to surface granular balance data
- The Rating section shows 5, 10 and 20 game moving average rating information and time spent in each league
- The Analysis section uses elegant math formulas to calculate 8 different metrics that assess skill in non-traditional ways
- The Rank section shows the evolution of the player's season-end rank over season
- The Game Length section shows the player's win rates in different game length brackets which is significant due to how the game is played over time (progressing from Feudal to Castle to Imperial age)- early gameplay is more micromanagement oriented and conversely late-game is more about macro
- The Opponents section is geographical represenation of the origin of the player's opponents
- The Insights section throws the entire payload of player data at
grok-4-fast-reasoningwith a custom prompt to extract patterns pertaning to the player's performance.
- Shows a breakdown of countries for Conqueror (1400+ rating), Conqueror 3 (2000+ rating) and Top 100 players
- Shows the number of Conqueror players per million for all country populations
- Shows the average rank in each country
Browse the different sections of the app to see various statistics and charts. Here are some individual player statisctics to look at:
https://www.aoe4stats.com/player/1676400/rating
https://www.aoe4stats.com/player/60328/rating
https://www.aoe4stats.com/player/6943917/rating
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4001 from your browser.
