Question: Please write a Python program to check a Sudoku game and show its result in detail. This is an application program of using 2-dimensional arrays

Please write a Python program to check a Sudoku game and show its result in detail. This is an application program of using 2-dimensional arrays or lists. Each array or list is a game board of 9 x 9. Your program must check the 9 x 9 game board, and report all the problems among 9 rows, 9 columns, and 9 squares.

As you can see, you must pre-load the following four games into your arrays or lists. Please create four lists of 9 x 9 each, and call them S1, S2, S3, and S4 respectively.

The complete output of your 4 games must look exactly as follows including the data.

Welcome to play the Sudoku Game Check of "Dr. Simon Lin"! Must put your name

1===================================.

Your game 1 is as follows:

123456789

234567891

345678912

456789123

567891234

678912345

789123456

891234567

912345678

Your game 1:

Square 1 has a problem.

Square 2 has a problem.

Square 3 has a problem.

Square 4 has a problem.

Square 5 has a problem.

Square 6 has a problem.

Square 7 has a problem.

Square 8 has a problem.

Square 9 has a problem.

2===================================.

Your game 2 is as follows:

123456789

456789123

789123456

234567891

567891234

891234567

345678912

678912345

912345678

Your game 2:

Congratulations! You won the game.

3==================================.

Your game 3 is as follows:

123456782

456789123

789123456

234567891

567891234

891234567

345678912

678912345

912345678

Your game 3:

Row 1 has a problem.

Column 9 has a problem.

Square 3 has a problem.

4===================================.

Your game 4 is as follows:

123456789

456789123

789123456

234567891

567891234

891234567

345678912

678918345

912345678

Your game 4:

Row 8 has a problem.

Column 6 has a problem.

Square 8 has a problem.

5===================================.

Thank you for playing this Sudoku Game Check of "Dr. Simon Lin"! Must put your name

6===================================.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!