Add LightCycles arena (Tron light-cycles)#117
Open
john-b-yang wants to merge 2 commits into
Open
Conversation
Thin arena wrapper cloning CodeClash-ai/LightCycles, replay renderer (trail accumulation + head/crash markers, per-sim winner via peek_winner), registration, and test config.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds LightCycles, a Tron light-cycles arena. Players drive cycles around a bordered grid leaving solid trails; every tick all cycles move one cell simultaneously, and you crash (are eliminated) if you move into a wall/border, a rock, any trail (yours or an opponent's), or the same cell as another cycle (head-on/swap). Last cycle riding wins; all-crash-same-tick is a draw; at the tick cap the most territory (trail cells) wins.
The game engine lives in its own repo (cloned by the Dockerfile, matching the other arenas): CodeClash-ai/LightCycles.
Bot API
obsgives full deterministic state each tick:tick/max_ticks,width/height,you(id),players({id, x, y, dir, alive}), andgrid(grid[y][x]= player id>=0,-1empty, or-2rock). Reversing into your own neck / invalid / crashing / slow moves fall back to continuing straight.Features
ROCK_DENSITYknob;0= open board). Obstacles are true to the 2009 Waterloo/Google Tron challenge's walled maps.peek_winner(also surfaced in the shared replay index).Testing
codeclash run configs/test/lightcycles.yamlend-to-end (Docker build, sim, scoring, replay) passes.