8 kyu
Grasshopper - If/else syntax debug
20,257 of 41,335danleavitt0
Description:
If/else syntax debug
While making a game, your partner, Greg, decided to create a function to check if the user is still alive called checkAlive
/CheckAlive
/check_alive
. Unfortunately, Greg made some errors while creating the function.
checkAlive
/CheckAlive
/check_alive
should return true if the player's health is greater than 0 or false if it is 0 or below.
The function receives one parameter health
which will always be a whole number between -10 and 10.
Debugging
Similar Kata:
Stats:
Created | Apr 9, 2016 |
Published | Apr 9, 2016 |
Warriors Trained | 46352 |
Total Skips | 833 |
Total Code Submissions | 73863 |
Total Times Completed | 41335 |
JavaScript Completions | 20257 |
Python Completions | 15472 |
PHP Completions | 2076 |
C# Completions | 2263 |
Ruby Completions | 817 |
C Completions | 1195 |
Rust Completions | 404 |
TypeScript Completions | 423 |
Scala Completions | 44 |
Haskell Completions | 75 |
Java Completions | 205 |
Total Stars | 175 |
% of votes with a positive feedback rating | 91% of 4524 |
Total "Very Satisfied" Votes | 3797 |
Total "Somewhat Satisfied" Votes | 619 |
Total "Not Satisfied" Votes | 108 |