Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me create a C++ console-based sudoku game (9 x 9) which consists of the following: 1. A main menu with the options of:

Please help me create a C++ console-based sudoku game (9 x 9) which consists of the following:

1. A main menu with the options of:

New Game, How To Play, and Exit

2. In the New Game option, the user should have the ability to pick the level of difficulty from Easy, Medium or Hard. (Create a sub-menu for these options)

3. Please use the attached pictures for the question and solutions for the easy, medium and hard.

4. Please see the attached picture to see what the grid of the sudoku should look like in the program. (The unassigned locations inside the grid should be blank) [The grid design should not be colored, it's okay to use the default colors of the console.]

5. To let the user pick the location on where they will assign a value, let the user input the row and column number.

6. The user should also have an option to receive hints during the game (the hints should be randomly placed in any of the unassigned locations inside the grid).

7. The user should also have an option to give up during the game and when they do, the program will show all the correct answers.

8.When the user finished the game or gave up, there would be an option if they want to try again and will return to the main menu.

image text in transcribedWould gladly appreciate your help. Thank you!

Sudoku #557 (Easy) Sudoku #575 (Medium) Sudoku #559 (Hard) 5 6 1 16 6 3 7 4 6 511 3 8 Sudoku #557 (Easy) 8 6 5 9 3 4 1 2 7 2 4 1 5 6 7 8 9 3 7 3 9 8 2 1 6 4 5 3 9 8 4 7 2 5 6 1 5 1 2 3 8 6 9 7 4 4 7 6 1 5 9 2 3 8 6 8 4 7 9 5 3 1 2 9 5 7 2 1 3 4 8 6 1 2 3 6 4 8 7 5 9 co w OOONEVA Sudoku #575 (Medium) 2 3 6 4 1 7 9 5 8 9 7 4 2 8 5 6 1 3 5 8 1 6 3 912 4 7 1 2 8 5 6 4 3 7 9 3 9 7 1 2 8 4 6 5 4 6 5 7 9 31 8 2 6 5 213 7 18 9 4 7 1 98 4 2 5 3 6 8 4 39 5 6 7 2 1 4 6 Sudoku #559 (Hard) 58 9 4 6 13 7 2 2 7 15 8 3 6 9 4 3 4 6 7 9 28 1 5 4 2 5 1 3 7 9 6 8 6 9 7 8 4 5 1 2 3 1 3 89 2 6 4 5 7 7 6 42 1 8 5 3 9 8 1 2 3 5 9 7 4 6 95 316 7 4 2 8 1 2 3 61 591 6 5 513 6 O 2 36 7 Grid design example 0 1 2 3 4 5 6 7 # 1 # #3 | 6 | 8 # 1 # 13 | 7 # 5 | 1| #9 | I # #--- --- - - --- --- --- --- --- ---# # # 1 8 17 | 1# # 5 | #1 | 6 | 4 # 1 l # #---+---+---#---+---+---#---+---+---# #71 # 8| # | | 6 # #---+---+---#---+---+---+---+---+---# # L # 2 | 7 | 9 # 1 5 # # 1 | 41 #7| # T #---+---+---+---+---+--- ---+---+---# # 1 | 2 | 9 6 # 1 | 5 | #---+---+--- ---+---+--- ---+---+---# # 8 5 # 1 | # # Sudoku #557 (Easy) Sudoku #575 (Medium) Sudoku #559 (Hard) 5 6 1 16 6 3 7 4 6 511 3 8 Sudoku #557 (Easy) 8 6 5 9 3 4 1 2 7 2 4 1 5 6 7 8 9 3 7 3 9 8 2 1 6 4 5 3 9 8 4 7 2 5 6 1 5 1 2 3 8 6 9 7 4 4 7 6 1 5 9 2 3 8 6 8 4 7 9 5 3 1 2 9 5 7 2 1 3 4 8 6 1 2 3 6 4 8 7 5 9 co w OOONEVA Sudoku #575 (Medium) 2 3 6 4 1 7 9 5 8 9 7 4 2 8 5 6 1 3 5 8 1 6 3 912 4 7 1 2 8 5 6 4 3 7 9 3 9 7 1 2 8 4 6 5 4 6 5 7 9 31 8 2 6 5 213 7 18 9 4 7 1 98 4 2 5 3 6 8 4 39 5 6 7 2 1 4 6 Sudoku #559 (Hard) 58 9 4 6 13 7 2 2 7 15 8 3 6 9 4 3 4 6 7 9 28 1 5 4 2 5 1 3 7 9 6 8 6 9 7 8 4 5 1 2 3 1 3 89 2 6 4 5 7 7 6 42 1 8 5 3 9 8 1 2 3 5 9 7 4 6 95 316 7 4 2 8 1 2 3 61 591 6 5 513 6 O 2 36 7 Grid design example 0 1 2 3 4 5 6 7 # 1 # #3 | 6 | 8 # 1 # 13 | 7 # 5 | 1| #9 | I # #--- --- - - --- --- --- --- --- ---# # # 1 8 17 | 1# # 5 | #1 | 6 | 4 # 1 l # #---+---+---#---+---+---#---+---+---# #71 # 8| # | | 6 # #---+---+---#---+---+---+---+---+---# # L # 2 | 7 | 9 # 1 5 # # 1 | 41 #7| # T #---+---+---+---+---+--- ---+---+---# # 1 | 2 | 9 6 # 1 | 5 | #---+---+--- ---+---+--- ---+---+---# # 8 5 # 1 | # #

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago