![]() First, we import the Scanner class to help us get input from the user, by adding import to the top of our program.Step 1: Ask the user to enter in their move. Use a loop to continue asking the user for their move.Use conditionals to figure out if you won, lost, or tied.Check if the user entered a valid move.If you type in something random, then the program prints “Your move isn’t valid!”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |