Question: Please write a Python program to play a Sudoku game and show its winning result. This is an application program of using 2-dimensional arrays/lists. Each
Please write a Python program to play a Sudoku game and show its winning result. This is an application program of using 2-dimensional arrays/lists. Each array/list is for a game board of 9 x 9. Your program must know how to play Sudoku game and complete the game with a winning result.
An easier approach to this project is to write recursive functions to solve the game.
As you can see, you must pre-load the following 4 games into your arrays/lists. Please create 4 arrays of 9 x 9 each, and call them G1, G2, G3, and G4 for examples.
The complete output of your test of 4 games must look exactly as follows including the data.
Welcome to play the Sudoku real game of "Dr. Simon Lin"! must use your name here!
1==================================================.
Game 1 is as follows:
123456789
4_6789123
7891_3456
234567891
5678912_4
891234567
_45678912
678912345
912345_78
Game 1 winning result is as follows:
123456789
456789123
789123456
234567891
567891234
891234567
345678912
678912345
912345678
2==================================================.
Game 2 is as follows:
_2345678_
_56789_23
7891_3456
23_567891
56789_234
89_23456_
345678_12
_7891_345
91_34567_
Game 2 winning result is as follows:
123456789
456789123
789123456
234567891
567891234
891234567
345678912
678912345
912345678
3==================================================.
Game 3 is as follows:
12_456_8_
_5678_123
7_912_456
_34_6_891
567_912_4
8_12345_7
345_78_12
67_9123_5
9_234_67_
Game 3 winning result is as follows:
123456789
456789123
789123456
234567891
567891234
891234567
345678912
678912345
912345678
4==================================================.
Game 4 is as follows:
1_34_67_9
_5_78_1_3
_8_12_45_
2_45_78_1
_67_91_3_
8_1_3_56_
_45_7_9_2
6_8_1_34_
_12_456_8
Game 4 winning result is as follows:
123456789
456789123
789123456
234567891
567891234
891234567
345678912
678912345
912345678
5=================================================.
Thank you for playing this Sudoku real game of "Dr. Simon Lin"! must use your name!
6=================================================.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
