Class: BloodChalice::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/bloodchalice/bloodchalice.rb

Class Method Summary collapse

Class Method Details

.runObject



6
7
8
9
10
11
12
13
14
# File 'lib/bloodchalice/bloodchalice.rb', line 6

def self.run
  say('Welcome to Blood Chalice')
  number_of_players = ask("How many players are going to play?").to_i
  
  game = Game.new(number_of_players: number_of_players)
  while not game.end_of_game?
    game.next_turn
  end
end