Module: Rubots

Defined in:
lib/rubots.rb,
lib/rubots/beam.rb,
lib/rubots/game.rb,
lib/rubots/robot.rb,
lib/rubots/strategy.rb,
lib/rubots/command/base.rb,
lib/rubots/command/fire.rb,
lib/rubots/graphics/beam.rb,
lib/rubots/graphics/robot.rb,
lib/rubots/graphics/assets.rb,
lib/rubots/graphics/window.rb,
lib/rubots/samples/rotator.rb,
lib/rubots/strategy_loader.rb,
lib/rubots/command/throttle.rb,
lib/rubots/command/rotate_to.rb,
lib/rubots/samples/artillery.rb,
lib/rubots/command/do_nothing.rb,
lib/rubots/samples/sitting_duck.rb,
lib/rubots/command/rotate_gun_to.rb,
lib/rubots/samples/target_finder.rb

Defined Under Namespace

Modules: Command, Graphics, Samples Classes: Beam, Game, Robot, Strategy, StrategyLoader

Class Method Summary collapse

Class Method Details

.run_game(params) ⇒ Object



12
13
14
15
16
# File 'lib/rubots.rb', line 12

def self.run_game(params)
  game = Game.new StrategyLoader.load(params)

  Graphics::Window.new(game).show
end