An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

![SBC Cruncher banner](public/images/banner_low.png)

SBC Cruncher

Calculate the cheapest combination of player ratings for Ultimate Team SBC solutions



Netlify Status


Google play

## 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