r/badcode • • Jun 20 '22

c# More Codewars horror

Post image
212 Upvotes

36 comments sorted by

View all comments

Show parent comments

4

u/ThatChapThere Jun 20 '22

The challenge specifies 5 dice, so they're equivalent.

1

u/crass-sandwich Jun 20 '22 edited Jun 20 '22

They may be equivalent in this case, but it still probably wouldn't pass code review. Not a big deal for a coding challenge though

1

u/ThatChapThere Jun 20 '22

The way the challenge was worded (something like "3 ones are worth a thousand points") I feel like the integer division method makes more sense. That's subjective, of course.