abstract class Strategy::Base
- Strategy::Base
- Reference
- Object
Overview
Abstract class of all strategies. They're all initialized with a @context
and their entrypoint is the #move
method
Direct Known Subclasses
- Strategy::CautiousCarol
- Strategy::ChaseClosestFood
- Strategy::ChaseRandomFood
- Strategy::Random
- Strategy::RandomValid
Defined in:
strategy/base.crConstructors
Instance Method Summary
-
#move
Returns the move (direction) to chose based on the @context