DraftStars
Full stack machine learning program that predicts and recommends character picks in Brawl Stars.
Install / Use
/learn @mcmckinley/DraftStarsREADME
- <a href="https://github.com/mcmckinley/DraftStarsModel">DraftStarsModel</a> - This is where I create, train and export new versions of the model.
- <a href="https://github.com/mcmckinley/DraftStarsDataCollection">DraftStarsDataCollection</a> - This is where I collect data on which to train the model.
Selecting a brawler can be incredibly challenging. During the picking stage of a ranked match, you have only 20 seconds to choose from a roster of 83 characters. When making your choice, you must consider several difficult factors:
- Countering the enemy's picks
- Being difficult to counter by the enemy
- What your teammates have picked and will pick
- The map in play
- 🐳 <strong>Docker</strong>
- 🔒 <strong>Caddy</strong> for reverse proxy
- 🔥 <strong>PyTorch</strong> to create, train and load the model
- ⏩ <strong>FastAPI</strong> for the backend
- :electron: <strong>React</strong>
- 🤖 <strong>reCAPTCHA</strong> for feedback submissions
Getting Started
Setting up the backend:
- First, you need three things, all of which can be downloaded here:
- <a href="https://drive.google.com/file/d/1eg7-MFAc94ubBJn0HoK23hCwguaRe9Um/view?usp=sharing">The Model<a>
- <a href="https://drive.google.com/file/d/1MYFUllcSzldQfGiil3yZkBzo4ppHMZt5/view?usp=sharing">The Brawler Embeddings</a> (download these as CSV)
- <a href="https://drive.google.com/file/d/182Fkae_QScmyzRhevi3L338Pmh1czOIt/view?usp=sharing">The Map Embeddings</a> (download these as CSV)
- Create a folder in
backend/appcalledpytorch. - Add the three files you downloaded into
pytorch.
The backend is now ready to run the model!
- Create the container
docker compose build backend
- Run the container
docker compose up backend
- (optional) If you want to set up SMTP email feedback, rename
backend/.env.exampleto.env, and configure the environmental variables in there.
Setting up the frontend:
- Enter the frontend directory
$ cd frontend
- Install dependencies
$ npm install
- Create the container
docker compose build frontend
- Run the container
docker compose up frontend
Downloading the assets
Unfortunately there isn't an easy way to download the brawler/map icon assets. The frontend is usable (but ugly) without them. If you want to download the assets, follow these steps.
<h2>Brawler Icons</h2>- Create a folder under
frontend/src/namedbrawlerIcons - Go to https://fankit.supercell.com/d/YvtsWV4pUQVm/game-assets
- Under 'Asset type' select 'Brawler Portraits'
- Go to each brawler and download the image to
brawlerIcons
- These should all be in png format. If not, go to
frontend/src/data/brawlers.jsand modify the imgUrl value of each brawler so the frontend knows what image to look for.
- Create a folder under
frontend/src/namedmapIcons - Go to https://brawlify.com/maps/
- On each map, right click and download the image to
brawlerIcons
- These should all be in png/webp format. If not, go to
frontend/src/data/maps.jsand modify the imgUrl value of each brawler so the frontend knows what image to look for.
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
research_rules
Research & Verification Rules Quote Verification Protocol Primary Task "Make sure that the quote is relevant to the chapter and so you we want to make sure that we want to have it identifie
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
