class Strategy::ChaseRandomFood

Overview

Strategy that chases randomly selected food from the board

Defined in:

strategy/chase_random_food.cr

Instance Method Summary

Instance methods inherited from class Strategy::Base

move move

Constructor methods inherited from class Strategy::Base

new(context : BattleSnake::Context) new

Instance Method Detail

def move #
Description copied from class Strategy::Base

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


[View source]