Skip to content

Commit

Permalink
Fix puppet head draw
Browse files Browse the repository at this point in the history
  • Loading branch information
ammancilla committed Jan 12, 2015
1 parent 5fddd01 commit ef3ea60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hangman_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Drawer
def self.draw_puppet(hangman_game)
allowat = hangman_game.allowed_attempts
rattempts = hangman_game.remaining_attempts
puppet = burn_or_body(" O ", allowat, allowat, hangman_game.attempts) + "\n"
puppet = burn_or_body(" O ", allowat, allowat, rattempts) + "\n"
1.upto(allowat) do |i|
puppet << case allowat - i
when 5
Expand Down

0 comments on commit ef3ea60

Please sign in to comment.