A scikit-learn model that predicts
win rates for custom Teklovossen (Mechanologist)
card decks in the
Flesh and Blood trading card game.
This project explores how machine learning can be applied to game balance analysis
using simulated gameplay data from a custom game engine.
1from huggingface_hub import hf_hub_download
2import joblib, numpy as np
3
4path = hf_hub_download(repo_id="4math/FAB_Prediction_Model", filename="model.joblib")
5model = joblib.load(path)
6
7# Example: a Nano-focused deck
8features = np.array([[9,0,0,2, 5,2,1,0, 9,9,12, 0.6, 9.4,13.6,7.3, 0.74, 6.7, 0,0]])
9print(model.predict(features)) # predicted win rate
This is a fan-made educational project exploring ML for TCG game balance.
The model is trained on simulated gameplay data from a custom Flesh and Blood
game engine featuring Teklovossen, a Mechanologist hero with custom Evo cards
across four tech themes: AI, Nano, Quantum, and Biomancy.