bin/rtanque in rtanque-0.0.2 vs bin/rtanque in rtanque-0.1.0

- old
+ new

@@ -24,10 +24,12 @@ method_option :height, :aliases => '-h', :default => 700, :type => :numeric, :banner => 'height of window' method_option :max_ticks, :aliases => '-m', :default => Float::INFINITY, :type => :numeric, :banner => 'max ticks allowed per match' method_option :gui, :default => true, :type => :boolean, :banner => 'false to run headless' method_option :gc, :default => true, :type => :boolean, :banner => 'disable GC (EXPERIMENTAL)' method_option :quiet, :aliases => '-q', :default => false, :type => :boolean, :banner => 'disable chatter' + method_option :seed, :default => Kernel.srand, :type => :numeric, :banner => 'random number seed value' def start(*brain_paths) + Kernel.srand(options[:seed]) runner = RTanque::Runner.new(options[:width], options[:height], options[:max_ticks]) brain_paths.each { |brain_path| begin runner.add_brain_path(brain_path) rescue RTanque::Runner::LoadError => e \ No newline at end of file