https://github.com/mabenj/sbccruncher
Web app that calculates the cheapest solutions for FIFA Ultimate Team SBCs by leveraging combinatorics and web workers
https://github.com/mabenj/sbccruncher
chakra-ui combinatorics fifa react typescript webworkers
Last synced: 5 months ago
JSON representation
Web app that calculates the cheapest solutions for FIFA Ultimate Team SBCs by leveraging combinatorics and web workers
- Host: GitHub
- URL: https://github.com/mabenj/sbccruncher
- Owner: mabenj
- License: gpl-3.0
- Created: 2022-01-29T13:35:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-14T22:06:01.000Z (5 months ago)
- Last Synced: 2024-12-14T22:27:48.664Z (5 months ago)
- Topics: chakra-ui, combinatorics, fifa, react, typescript, webworkers
- Language: TypeScript
- Homepage: https://sbccruncher.cc
- Size: 4.48 MB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README

SBC Cruncher
Calculate the cheapest combination of player ratings for Ultimate Team SBC solutions
## Introduction
[SBC Cruncher](https://sbccruncher.cc) is a website that helps you find the cheapest player ratings to reach a specific target rating in FIFA (EA Sports FC) Ultimate Team. This is particularly useful for completing [SBC](https://www.futbin.com/squad-building-challenges)s, as it allows you to specify the ratings of the players you already have and plan to use in the SBC (aka, fodder). It also has the capability to automatically retrieve player rating prices from Futbin and Futwiz, removing the need for manual input of prices for each rating.
## How it works
_tl;dr brute force_
1. Given the existing player ratings and the range of ratings to try, all possible combinations of these ratings are computed. In other words, all possible teams made up of the existing ratings plus all the possible _multisubsets_ (unordered sets with repetition of elements) of the ratings to try.
2. All rating combinations that have a rating lower than the target are then filtered out.
3. Lastly, each combination of ratings is assigned a price based on the user or Futbin-defined prices, after which, it is only a matter of displaying the cheapest combinations of ratings.See [solver.worker.ts](src/workers/solver.worker.ts) for more details.
## Tech used
- Next.js, TypeScript
- MongoDB, Mongoose
- Web Workers
- Chakra UI