Skip to content

Commit 6d243ef

Browse files
committed
Minor core war validation fix
1 parent 23afd97 commit 6d243ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeclash/games/corewar/corewar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ def validate_code(self, agent: Player) -> tuple[bool, str | None]:
7373
# Play game against a simple default bot to ensure it runs
7474
test_run_cmd = f"{self.run_cmd_round} {self.submission} /home/dwarf.red"
7575
test_run = agent.environment.execute(test_run_cmd)["output"]
76-
if any([l.startswith("Error:") for l in test_run.split("\n")]):
76+
if any([l.startswith("Error") for l in test_run.split("\n")]):
7777
return False, f"The `{self.submission}` file is malformed (Ran `{test_run_cmd}`):\n{test_run}"
7878
return True, None

0 commit comments

Comments
 (0)