Skip to content

Datamaverik/TronBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Play on CodinGame Tron AI Grid

Game Overview

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.

How It Works

  • 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!

Objective

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.


Game Rules

Battle Structure

  • Each battle features 2, 3, or 4 players
  • Players take turns in sequence during battle
  • The game continues until only one player remains

Turn Mechanics

When your turn arrives, the following process occurs:

  1. Input Phase

    • Game information is sent to your program via standard input
    • Your AI must read this information at the start of each turn
  2. Decision Phase

    • Process the current game state
    • Calculate your next move
  3. Output Phase

    • Provide your next move via standard output
    • Valid directions: UP, DOWN, LEFT, RIGHT
    • Output must be a single line with the direction
  4. Execution Phase

    • Your light cycle moves in the specified direction
    • Wait for the next turn while other players make their moves

Losing Conditions

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

Cleanup Rules

  • When an AI loses, its light ribbon disappears from the grid
  • The game continues with remaining players

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages