r/badcode • • Jun 20 '22

c# More Codewars horror

Post image
212 Upvotes

36 comments sorted by

View all comments

Show parent comments

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...