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:
Created | Dec 27, 2015 |
Published | Dec 27, 2015 |
Warriors Trained | 20804 |
Total Skips | 932 |
Total Code Submissions | 46797 |
Total Times Completed | 10204 |
JavaScript Completions | 3716 |
C# Completions | 1074 |
CoffeeScript Completions | 35 |
Ruby Completions | 530 |
Python Completions | 3902 |
C++ Completions | 1299 |
Total Stars | 217 |
% of votes with a positive feedback rating | 78% of 1413 |
Total "Very Satisfied" Votes | 954 |
Total "Somewhat Satisfied" Votes | 287 |
Total "Not Satisfied" Votes | 172 |