module Battle

Constants

API_HOST
AVAILABLE_SHIPS
NUKE_URL
REGISTER_URL
VERSION

Public Class Methods

ships() click to toggle source
# File lib/battle.rb, line 26
def self.ships
  ships = []
  AVAILABLE_SHIPS.each do |ship|
    ship[:amount].times { ships << ship[:name] }
  end

  ships
end