print board
Sat May 20 2023 12:51:02 GMT+0000 (Coordinated Universal Time)
Saved by
@gokulz
/**
* function name : printBoard
* @param board
* Inside the function
* - Print the board
*
*/
public static void printBoard(char[][] board){
for(int row =0; row<board.length; row++){
System.out.println("\t"); // add a tab of space before each row
for(int col=0; col<board[row].length; col++){
System.out.print(board[row][col] + " ");
}
System.out.println();
}
}
content_copyCOPY
Comments