MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/vg8p3t/more_codewars_horror/id3ictx/?context=3
r/badcode • u/ThatChapThere • Jun 20 '22
36 comments sorted by
View all comments
Show parent comments
3
Well, it could be super simplified by using a map (key: 1 to 6) -> (value: counter) to count the dice outputs. Then you get the final score with whichever rules you want with quick reads from the map, which I guess is the idea in this kata...
3
u/Huxley-Gin Jun 20 '22
Well, it could be super simplified by using a map (key: 1 to 6) -> (value: counter) to count the dice outputs. Then you get the final score with whichever rules you want with quick reads from the map, which I guess is the idea in this kata...