7 kyu
Pathfinder Ability Scores Calculator
314user5750279
Description:
You've decided to try to create a test framework that allows for easy testing of Pathfinder Ability Score arrays, and their validity, using 25 points.
You will write a function that takes an array of 6 scores (integers) and will return a boolean if they add up in 25 points or less.
Each score will be in range 1 <= x <= 20. You must comply with the table below, and values where x < 7 and x > 18 should return False.
Each score costs a certain amount of points. For example, a score of 16 costs 10 points, but a score of 7 would give 4 back.
Python:
def pathfinder_scores(scores):
Examples:
pathfinder_scores([18, 13, 7, 12, 15, 10]) => True (Cost 25)
pathfinder_scores([13, 12, 14, 12, 15, 11]) => True (Cost 20)
pathfinder_scores([6, 19, 10, 10, 10, 10]) => False (Scores >18 and <7)
Algorithms
Similar Kata:
Stats:
Created | Dec 10, 2019 |
Published | Dec 12, 2019 |
Warriors Trained | 554 |
Total Skips | 50 |
Total Code Submissions | 1232 |
Total Times Completed | 314 |
Python Completions | 314 |
Total Stars | 5 |
% of votes with a positive feedback rating | 86% of 108 |
Total "Very Satisfied" Votes | 82 |
Total "Somewhat Satisfied" Votes | 22 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 35 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |