Module: RavCodebreaker

Included in:
Test
Defined in:
lib/rav_codebreaker.rb,
lib/rav_codebreaker/game.rb,
lib/rav_codebreaker/console.rb,
lib/rav_codebreaker/version.rb

Defined Under Namespace

Classes: Console, Game

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

._play(level) ⇒ Object



6
7
8
9
10
11
# File 'lib/rav_codebreaker.rb', line 6

def self._play(level)
  begin
    game = Game.new(level)
    game.play
  end while game.again?
end

.play(level) ⇒ Object



13
14
15
16
17
18
# File 'lib/rav_codebreaker.rb', line 13

def self.play(level)
  begin
    console = Console.new(level)
    console.play
  end while console.again?
end