Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markus1189/scoring_predictions-kata
https://github.com/markus1189/scoring_predictions-kata
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/markus1189/scoring_predictions-kata
- Owner: markus1189
- Created: 2012-05-15T14:58:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-15T17:33:15.000Z (over 12 years ago)
- Last Synced: 2023-03-12T07:18:57.574Z (over 1 year ago)
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Scoring Predictions Kata
## Task
* Write a method that accepts two arguments: an Array of five guesses for
finalists in a race and an Array of the five actual finalists.
* Each position in the lists matches a finishing position in the race, so first
place corresponds to index 0.
* Return an Integer score of the predictions: 0 or more points.
* Correctly guessing first place is worth 15 points, second is worth 10, and on
down with 5, 3, and 1 point for fifth place.
* It's also worth 1 point to correctly guess a racer that finishes in the top
five, but have them in the wrong position.