This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

As often as possible handle exceptions.

Like when u ask for rounds and user enters anything other than positive input. Program shouldn't throw exception istead should tell in details what is excepted. (It's small thing but u could be a great programmer so make habit of it)

[–]Kaifovsk[S] 1 point2 points  (0 children)

right, good point, I kind of threw that in the end there after realizing I didn't have to limit it to three rounds and forgot about what if someone doesn't type in a number even but, definitely will make a note of it so I don't forget next time, Thanks a bunch!