exercism-perl5

Repository for my Perl 5 Exercism exercises
git clone git://git.samirparikh.com/exercism-perl5
Log | Files | Refs | README

README.md (1144B) - raw


      1 # Scrabble Score
      2 
      3 Welcome to Scrabble Score on Exercism's Perl 5 Track.
      4 If you need help running the tests or submitting your code, check out `HELP.md`.
      5 
      6 ## Instructions
      7 
      8 Given a word, compute the Scrabble score for that word.
      9 
     10 ## Letter Values
     11 
     12 You'll need these:
     13 
     14 ```text
     15 Letter                           Value
     16 A, E, I, O, U, L, N, R, S, T       1
     17 D, G                               2
     18 B, C, M, P                         3
     19 F, H, V, W, Y                      4
     20 K                                  5
     21 J, X                               8
     22 Q, Z                               10
     23 ```
     24 
     25 ## Examples
     26 
     27 "cabbage" should be scored as worth 14 points:
     28 
     29 - 3 points for C
     30 - 1 point for A, twice
     31 - 3 points for B, twice
     32 - 2 points for G
     33 - 1 point for E
     34 
     35 And to total:
     36 
     37 - `3 + 2*1 + 2*3 + 2 + 1`
     38 - = `3 + 2 + 6 + 3`
     39 - = `5 + 9`
     40 - = 14
     41 
     42 ## Extensions
     43 
     44 - You can play a double or a triple letter.
     45 - You can play a double or a triple word.
     46 
     47 ## Source
     48 
     49 ### Created by
     50 
     51 - @bistik
     52 
     53 ### Contributed to by
     54 
     55 - @darksuji
     56 - @drewbs
     57 - @kytrinyx
     58 - @m-dango
     59 - @rfilipo
     60 - @sshine
     61 
     62 ### Based on
     63 
     64 Inspired by the Extreme Startup game - https://github.com/rchatley/extreme_startup