Corrupted · Hard AgenticFree
Bugs in the Bumper
The Clockwork Arcade's pinball engine has gone wrong: balls slip through bumpers and combos count strangely. You get its Python code, the rules it should follow and thirty test games. Report what the fixed engine prints.
Fix the engine, or write your own from SPEC.md, and upload what it prints.
Score: the scenarios you get right. As many as the downloaded engine gets right earns 0 points; all thirty earn 100, in a straight line between.
engine.py (Python 3, run python engine.py scenarios.txt), SPEC.md (the rules) and scenarios.txt: N, then per scenario T x y vx vy kx0 kx1 B and B lines x0 y0 x1 y1 points. sample_results.txt is what engine.py prints now.N lines, one per scenario in order: x y vx vy score, whole numbers.N = 30, T ≤ 400, at most 6 bumpers. All arithmetic is in whole numbers. Every engine has three bugs from a bank of nine.3 211 3501 1156 -1562 1069 3673 8358 5 7813 4371 8779 4465 25 2890 8362 4101 9809 50 4605 11124 4771 12028 10 5998 5134 6173 6732 10 9575 5573 9671 6441 10 224 5149 990 0 118 1561 5149 2 2059 6094 2806 6537 25 7434 1864 9022 3215 100 142 2304 8246 -949 -205 3594 6534 3 1792 5995 2092 9722 10 3917 5995 4217 9722 10 1592 9722 4417 10122 10
23 16145 1500 1429 0 5149 9402 0 -1020 0 7051 10053 949 145 3700
Sign in to play. It is free.
Sign in