1
1
Fork 0
exercism/jq/scrabble-score/scrabble-score.jq
Christina Sørensen 8bee36be78
feat(jq): scrabble, hamming, etl, collatz
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-12-16 16:22:26 +01:00

10 lines
237 B
Text

{
A: 1, E: 1, I: 1, O: 1, U: 1, L: 1, N: 1, R: 1, S: 1, T: 1,
D: 2, G: 2,
B:3 , C: 3, M: 3 , P: 3,
F: 4, H: 4, V: 4, W: 4, Y: 4,
K: 5,
J: 8, X: 8,
Q: 10, Z: 10,
} as $points |
.word | ascii_upcase / ""| map($points[.]) | add // 0