Time To Code: Task IV
Explore how to handle user input in Java by using the Scanner class to take row and column entries for Tic-Tac-Toe. Learn to validate these inputs to ensure moves are within bounds and unoccupied, then update the game board accordingly.
We'll cover the following...
We'll cover the following...
Task IV: Make the user’s move
Once we have the layout of our game, we need to start playing. We’ll take the players’ moves as input and then update the board accordingly.
Note: We’ll use
java.util.Scannerto take the user’s input, but you don’t need ...