Quantcast
Channel: Java Rock/Paper/Scissors Game - Code Review Stack Exchange
Browsing latest articles
Browse All 5 View Live

Answer by pdmoore for Java Rock/Paper/Scissors Game

This answer focuses on the negative code paths.You use "ERROR!!", "ERROR!", and "ERROR! ERROR!" to indicate something has gone wrong but don't provide any information as to what went wrong or how to...

View Article



Answer by Ruslan López for Java Rock/Paper/Scissors Game

You can code cleaner, small and reliable with some minimal optimizations, but as long as it remains in main mode will be an imperative program, not an Object Oriented. Object orientation make the...

View Article

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...

View Article

Answer by Matthieu for Java Rock/Paper/Scissors Game

What do you mean by "reduce the size"? Code or byte-code?If it's code you can easily remove a few lines by merging your System.out.print*():System.out.printf("Wins: %d %.2f%%\nLosses: %d %.2f%%\nDraws...

View Article

Java Rock/Paper/Scissors Game

For my computer science class I am tasked with writing a rock/paper/scissors game. I understand how to write the game, but I was wondering if someone more experienced than I could give me some pointers...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images