This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Numba-JIT forward simulator for Orbit Wars. | |
| Replicates `kaggle_environments.envs.orbit_wars.orbit_wars.interpreter` EXACTLY, | |
| using flat numpy arrays for the hot loop. Expected 10-50x speedup vs pure Python. | |
| Simplifications vs full env: | |
| - No comet spawning during simulation (rare, at turns 50/150/250/350/450) | |
| We DO track existing comets in initial state and advance them along paths. | |
| But new comets mid-simulation are not spawned. | |
| - No randomness introduced during simulation. |