Question: You will create a small program that after reading a series of sudoku games, it stores them in a single 4-dimensional array with the following
You will create a small program that after reading a series of sudoku games, it stores them in a single 4-dimensional array with the following structure:


You will create a small program that after reading a series of sudoku games, it stores them in a single 4-dimensional array with the following structure: 1st dimension: game level (0, 1, 2 - representing beginner, intermediate, advanced levels of difficulty) 2nd dimension: game number in a given level, e.g., 3rd game in the intermediate level 3rd and 4th dimensions: rows and columns of a given game. In the code below, there are some methods that have been already created for your convenience (I do not want to scare my students too much at the beginning of the semester, so I did those methods for you...). There are few methods that you must create your own, though. After the program reads a text file containing all the sudoku games (text file given in the syllabus), it asks the player what level he/she wants. The program shall check if the user has entered a valid input, i.e., from 1 to 4. If not, it should warn the user and ask they to reenter their choice. After selecting the level, the program displays only the games for that given level of difficulty. Then, finally, the program asks the player what of those games he/she wants to play and after getting this information, the program displays only the selected game in the terminal window. Then the main menu comes back again and the process repeats itself until the player types 4 , for quitting the game. Note: try to use array slices when going from the 4D array (all levels, all games) to 3D (one given level, e.g., beginners level, all games) and from 3D to 2D (one game for the chosen level)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
