8 kyu

Finish Guess the Number Game

3,716 of 10,204brunolm

Description:

Imagine you are creating a game where the user has to guess the correct number. But there is a limit of how many guesses the user can do.

  • If the user tries to guess more than the limit, the function should throw an error.
  • If the user guess is right it should return true.
  • If the user guess is wrong it should return false and lose a life.

Can you finish the game so all the rules are met?

Fundamentals
Object-oriented Programming

Similar Kata:

Stats:

CreatedDec 27, 2015
PublishedDec 27, 2015
Warriors Trained20804
Total Skips932
Total Code Submissions46797
Total Times Completed10204
JavaScript Completions3716
C# Completions1074
CoffeeScript Completions35
Ruby Completions530
Python Completions3902
C++ Completions1299
Total Stars217
% of votes with a positive feedback rating78% of 1413
Total "Very Satisfied" Votes954
Total "Somewhat Satisfied" Votes287
Total "Not Satisfied" Votes172
Ad
Contributors
  • brunolm Avatar
  • GiacomoSorbi Avatar
  • siebenschlaefer Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • Haksell Avatar
  • KayleighWasTaken Avatar
Ad