Jaswin-27/MetaXSCALER_Hackathon
0
1from models import State
2
3# EASY TASK
4def task_survive(state: State) -> bool:
5 return state.day >= 5
6
7
8# MEDIUM TASK
9def task_earn_money(state: State) -> bool:
10 return state.money >= 200
11
12
13# HARD TASK
14def task_balance_life(state: State) -> bool:
15 return (
16 state.money >= 150 and
17 state.happiness >= 50 and
18 state.energy >= 30
19 )