jamie keene wrote:I need help writing the main method...
here is the outline for the main method
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
[My Blog]
All roads lead to JavaRanch
so how do i make the coin1 == coin2 same and coin1 != coin2 different match the input from the user?
[My Blog]
All roads lead to JavaRanch
if(coin1.equals(coin2))&& choice = same
is there a way to get the computer play another round without having to rerun the program?
[My Blog]
All roads lead to JavaRanch
----jGRASP exec: java Game
Enter your choice (Same or Different):
same
Computer flipped Tails and Heads
YOU LOSE
Would you like to try again (yes or no):
yes
Enter your choice (Same or Different):
Computer flipped Tails and Tails
YOU LOSE
Enter your choice (Same or Different):
[My Blog]
All roads lead to JavaRanch
jamie keene wrote:
but i get the error of an odd repeat.. and how can i count the wins/loses to total at the end?
this is what the error looks like
----jGRASP exec: java Game
Enter your choice (Same or Different):
same
Computer flipped Tails and Heads
YOU LOSE
Would you like to try again (yes or no):
yes
Enter your choice (Same or Different):
Computer flipped Tails and Tails
YOU LOSE
Enter your choice (Same or Different):
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |