Spaces:
Sleeping
Sleeping
File size: 1,031 Bytes
4888431 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # game_loop.py
from server.debate_environment import DebateEnvironment
from models import DebateAction
print("=== Testing Debate Environment ===\n")
for difficulty in [1, 2, 3]:
env = DebateEnvironment(difficulty=difficulty)
obs = env.reset()
print(f"Difficulty {difficulty}:")
print(f" Topic: {obs.topic}")
print(f" Side: {obs.side}")
# test weak argument
weak = DebateAction(argument="I think this is true because many people believe it and it seems obvious.")
result = env.step(weak)
print(f" Weak reward: {result.reward} | {result.feedback}")
# test strong argument
obs = env.reset()
strong = DebateAction(
argument="Multiple peer-reviewed studies confirm this position. Research from Stanford and MIT found measurable impacts with statistical significance above 95%. Historical precedent across three decades further validates this conclusion."
)
result = env.step(strong)
print(f" Strong reward: {result.reward} | {result.feedback}")
print() |