Question: can you please give me the code for this question, and explain the use of those codes?? Question 1 (12 Marks) Complete the Game class

can you please give me the code for this question, and explain the use of those codes??
Question 1 (12 Marks) Complete the Game class with the following fields and methods: A private instance variable board which is a 2-dimentional array of boolean variables (1 marks) A default constructor initializing board as a 10 by 10 array with elements set to false (2 marks). Complete the display method to print the board to the console, where for each position(ij) in the array (2marks): O [ ] is printed if board[i] [] is false o [*] is printed if board[i) is true Complete the setupBoard method to update board to match the pattern shown below (7 marks). [X][ ][ ][ ][ ][ ][ ][ ][ ][X] [X][X][ ][ ][ [ ][ ][X][X] [X][ ][X][ ][ ][ ][ ][X][ ][X] [X][ ][ 1[x] ][ ][X][ ][ ][X] [X][ ][ [ ][X][X][ ] [ ][X] [x [ I [ ] [ ][ ][ ][X] [X][ ][ ][ ][ ][ ][ ][ ][ ][X] [x][ ][ ][ [ [ [ ][ ][X] [X][ ][ ][ ][ ][ ][ ][ ][ ][X] [x][ ][ ][ ][ ][ ][ ][ ][ ][X] The text boxes above should output to the console when the main method is run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
