CoolFace
Apppublic

Jaswin-27/MetaXSCALER_Hackathon

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
graders.py19 linesDownload Raw Back to root
1from models import State
2
3# EASY GRADER
4def grade_survive(state: State) -> float:
5    return min(state.day / 5, 1.0)
6
7
8# MEDIUM GRADER
9def grade_money(state: State) -> float:
10    return min(state.money / 200, 1.0)
11
12
13# HARD GRADER (IMPORTANT — balanced scoring)
14def grade_balance(state: State) -> float:
15    money_score = min(state.money / 150, 1.0)
16    happiness_score = min(state.happiness / 50, 1.0)
17    energy_score = min(state.energy / 30, 1.0)
18
19    return (money_score + happiness_score + energy_score) / 3