Sha256: 9f675c956dfbfb811135f8fc08d68aa26a6e0edca3e85c34aa01257ad5c6316f
Contents?: true
Size: 217 Bytes
Versions: 5
Compression:
Stored size: 217 Bytes
Contents
require 'robot' class ShootingStation include Robot def tick events if rand < 0.2 turn(10) turn_gun(30) else turn(-4) turn_gun(-30) end fire(0.3) accelerate(1) end end
Version data entries
5 entries across 5 versions & 1 rubygems