Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by kkhipis for Java Rock/Paper/Scissors Game

Also extract new methods - userQuit(), checkResult(), etc. Then your main game loop will fit the screen, will be easier to maintain, and prettier.

Avoid useless comments like //main methodwhen you extract self described methods you will see that you don't need comments.


Viewing all articles
Browse latest Browse all 5

Trending Articles