Skip to content

Instantly share code, notes, and snippets.

View SebastianGilPinzon's full-sized avatar
🚀
Building the future

Sebastian Gil Pinzon SebastianGilPinzon

🚀
Building the future
View GitHub Profile
"""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.