Class: RubyArena::Level1
Instance Attribute Summary
Attributes inherited from Ai
Instance Method Summary collapse
Methods inherited from Ai
Constructor Details
This class inherits a constructor from RubyArena::Ai
Instance Method Details
#tick(events) ⇒ Object
3 4 5 6 7 |
# File 'lib/ruby_arena/level1.rb', line 3 def tick(events) set_radar_view_angle(5) turn_gun(4) fire if events[:scanned_robots].any? end |