module DemigodGame
Constants
- VERSION
Public Class Methods
new()
click to toggle source
# File lib/demigodGame.rb, line 7 def self.new puts UiHandler::NEW_GAME until (size = gets.chomp).match(/^\d+$/) && size.to_i >= 3 puts "Invalid world size" end @demigod = Demigod.new(World.new(size.to_i)) end
run()
click to toggle source
# File lib/demigodGame.rb, line 16 def self.run while true @demigod.turn end end