abstract class Strategy::Base

Overview

Abstract class of all strategies. They're all initialized with a @context and their entrypoint is the #move method

Direct Known Subclasses

Defined in:

strategy/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : BattleSnake::Context) #

[View source]

Instance Method Detail

def move #

Returns the move (direction) to chose based on the @context


[View source]