8 kyu
Grasshopper - Terminal game combat function
13,578 of 41,031rom4eg
Description:
Create a combat function that takes the player's current health and the amount of damage received, and returns the player's new health. Health can't be less than 0.
Fundamentals
Similar Kata:
Stats:
Created | Jan 3, 2017 |
Published | Jan 3, 2017 |
Warriors Trained | 46602 |
Total Skips | 1945 |
Total Code Submissions | 70656 |
Total Times Completed | 41031 |
JavaScript Completions | 13578 |
Ruby Completions | 967 |
Python Completions | 12401 |
Crystal Completions | 44 |
Rust Completions | 1315 |
C# Completions | 2530 |
Go Completions | 3013 |
C++ Completions | 5853 |
PHP Completions | 1311 |
Haskell Completions | 309 |
CoffeeScript Completions | 26 |
Racket Completions | 56 |
C Completions | 319 |
Java Completions | 847 |
Groovy Completions | 21 |
Total Stars | 172 |
% of votes with a positive feedback rating | 91% of 3823 |
Total "Very Satisfied" Votes | 3233 |
Total "Somewhat Satisfied" Votes | 508 |
Total "Not Satisfied" Votes | 82 |
Total Rank Assessments | 115 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |