0
How could I improve my code for this Mastermind clone?
I'm struggling to think of any ways to write this in a better way, what would you suggest me to do? https://code.sololearn.com/cegIYyrNe4NV/?ref=app
3 Answers
+ 1
Those are all valid points, thanks.
0
looking at a glance without looking at the algoritme:
on line 64 and line 34 you have questionable if statements, maybe by modifying line 64 you could make 1 if statement and also the one on line 34 you could change so that you don't need continue.
continue could almost always be avoided by refactoring your code, so that statement triggers me :)
also, maybe it's sololearn, but i can't input a difficulty :( i get the exception message always
0
just red your note on top :)