Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
Coffee

Muhammed Zatar moeshu

🎮
Coffee
View GitHub Profile
View AbstractDestroyer.rb
class Abstract < RTanque::Bot::Brain
NAME = 'Abstract'
include RTanque::Bot::BrainHelper
def tick!
command.speed = RTanque::Bot::MAX_SPEED
nearest = nearest_target()
if (!defined?(@direction))
@direction = 0