Welcome to the legendary Tron Light Cycle Arena! In this game, you are a program driving a light cycle, fighting against other programs on a digital grid battlefield.
- Light Cycles: Your cycle moves in straight lines and can only turn at 90° angles
- Light Ribbons: Each cycle leaves a solid light trail in its wake, with unique colors for each player
- Elimination: If a light cycle stops, hits a light ribbon, or goes off the grid, it's instantly deactivated
- Victory Condition: The last cycle standing wins the game!
Your mission is to become the ultimate program in the arena. Programs compete in battles with 2-4 cycles, and your ranking improves with each victory.
- Each battle features 2, 3, or 4 players
- Players take turns in sequence during battle
- The game continues until only one player remains
When your turn arrives, the following process occurs:
-
Input Phase
- Game information is sent to your program via standard input
- Your AI must read this information at the start of each turn
-
Decision Phase
- Process the current game state
- Calculate your next move
-
Output Phase
- Provide your next move via standard output
- Valid directions:
UP
,DOWN
,LEFT
,RIGHT
- Output must be a single line with the direction
-
Execution Phase
- Your light cycle moves in the specified direction
- Wait for the next turn while other players make their moves
Your program will lose if:
- Timeout: You don't provide output fast enough
- Invalid Output: You provide an invalid direction
- Collision: Your output would cause the cycle to hit an obstacle
- When an AI loses, its light ribbon disappears from the grid
- The game continues with remaining players