Skip to content

titiroMonkey/Auto-SBC

Repository files navigation

EAFC Automated SBC Solving ⚽

The goal is to automatically solve the SBC using the currently available players in the club with the minimum cost.

Frontend

The project utilizes tamper monkey script to output the users Club Player Data. Install the tampermonkey extension and then install the frontend script

This script implements a number of backend functions but the main feature is a Solve SBC button on each SBC that send players to the backend solver. The solver will attempt to use the current sbc solution as a starting point. This means subsequent solves ( pushing solve sbc button ) will use the previous solve as a starting point.

solveBtn

Players will also get SBC Lock button to not send use this player in the solution (if its a duplicate it will get sent)

Also a set the cost of this player to 0 button so it will get most likely get used if it can be fit into the SBC. This is useful to get rid of high rated duplicates or overpriced SBCS.

solveBtn

Check out the settings menu item for extra details!

Backend

Run pip3 install -r requirements.txt to install the required dependencies. To run the backend, simply run python -m uvicorn main:app --reload after installing python and the required dependencies.

The constraints used in the program are created in the optimize.py file based of the SBC requirements and the optimization problem is solved using Google CP-SAT solver.

Shoutouts

Thanks to Regista6 for showing the way with the google OR tools

About

EA FC Auto SBC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •