CoolFace
Apppublic

Jaswin-27/MetaXSCALER_Hackathon

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
test_env.py16 linesDownload Raw Back to root
1from env import LifeEnv
2from models import Action
3
4env = LifeEnv()
5
6state = env.reset()
7print("Initial:", state)
8
9for i in range(5):
10    action = Action(type="work")
11    result = env.step(action)
12
13    print("Step:", i+1)
14    print("State:", result.state)
15    print("Reward:", result.reward)
16    print("Done:", result.done)