8 kyu
Grasshopper - If/else syntax debug
20,390 of 41,743danleavitt0
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 | 46780 |
Total Skips | 860 |
Total Code Submissions | 74603 |
Total Times Completed | 41743 |
JavaScript Completions | 20390 |
Python Completions | 15664 |
PHP Completions | 2085 |
C# Completions | 2283 |
Ruby Completions | 824 |
C Completions | 1214 |
Rust Completions | 411 |
TypeScript Completions | 436 |
Scala Completions | 47 |
Haskell Completions | 78 |
Java Completions | 253 |
Total Stars | 179 |
% of votes with a positive feedback rating | 91% of 4540 |
Total "Very Satisfied" Votes | 3812 |
Total "Somewhat Satisfied" Votes | 620 |
Total "Not Satisfied" Votes | 108 |