Greed is a dice game played with five six-sided dice. Using an array containing five six-sided dice values, write a function that will score a thro...
For further actions, you may consider blocking this person and/or reporting abuse
its pretty? no... but it works
Very understandable and faster! 👍
Thanks Peter 😃
Perl
JS implementation keeping the rules as data
Keep the rules as data is the way to go. 🔥🔥🔥
ruby <3
Easy peasy, lemon squeezy
(language: Elixir)
A super gross unreadable solution but fun none the less 😂
Here is my simple solution with Python:
Python
JavaScript
Live demo on CodePen.
C#
Repl.it
my attempt using Python:
Haskell:
P.S. Hoogle is really useful. I didn't know about the
uncurry
function, but I knew I needed a function to do whatuncurry
does, so I could search for(a -> b -> c) -> (a, b) -> c
in hoogle!I love functional programming and feel the whole day like it's Friday
My python sol :
Ruby.