Skip to content

Commit

Permalink
refactor marking algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Eben Geer committed Mar 6, 2012
1 parent 40bddbf commit c4f89e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions codebreaker.rb
Expand Up @@ -12,10 +12,12 @@ def start(secret)

def guess(guess)
if @secret.include?(guess[0])
@output.puts '-'
mark = '-'
else
@output.puts ''
mark = ''
end

@output.puts mark
end
end
end

0 comments on commit c4f89e2

Please sign in to comment.