Spaces:
Sleeping
Sleeping
| # 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() |