Python Object-Oriented Python Dice Roller Yatzy Scoring

Gabriel Alcaraz
Gabriel Alcaraz
3,335 Points

is this wet code

this code is very repetitive and it looks like it it not following D.R.Y (don't repeat yourself) is or is this not wet code?

Ole Vølund Skov Mortensen
Ole Vølund Skov Mortensen
Courses Plus Student 25,518 Points

My thoughts Exactly!!!

It's very wet. how can someone copy and paste the ones method instead of just make ONE method with name that explained the purpose of it, and force the user to provide a value rather than making 6 methods that all do the same. the value of one method should just be provided by the function caller, not the program. Let humans inject the number and not the program. That's what humans are for-- providing input. Not machines. CP makes me insane when I see it in code