Commit b5fa030
Reject BattleSnake submissions missing a server entrypoint
validate_code was a pure function-def check, so a main.py that drops the
'if __name__ == "__main__": run_server(...)' block passed validation but
failed to start at runtime (forfeit). Require the entrypoint statically.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 16d9ef3 commit b5fa030
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
0 commit comments