class Strategy::BlastRandomValid
 
  - Strategy::BlastRandomValid
 - Strategy::Base
 - Reference
 - Object
 
Overview
A strategy that chooses a random valid move, or "up" if there isn't any.
Instead of the plain BattleSnake::Conext::valid_moves this strategy
uses BattleSnake::Conext::valid_moves for a smarter choice if possible.
Defined in:
strategy/blast_random_valid.crInstance Method Summary
- 
        #move
        
          
Returns the move (direction) to chose based on the @context
 
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