|
| 1 | +Sudoku Game |
| 2 | +The Sudoku game in Python. |
| 3 | + |
| 4 | +Rules of the Game |
| 5 | +Sudoku is a number placement puzzle game that is played on a 9x9 grid. The goal of the game is to fill in the empty cells of the grid with numbers from 1 to 9, such that each column, each row, and each of the nine 3x3 sub-grids (also called "boxes" or "regions") contains all of the numbers from 1 to 9 without repetition. |
| 6 | + |
| 7 | +The rules of Sudoku are as follows: |
| 8 | + |
| 9 | +Each row must contain all numbers from 1 to 9 without repetition. |
| 10 | +Each column must contain all numbers from 1 to 9 without repetition. |
| 11 | +Each 3x3 sub-grid (box) must contain all numbers from 1 to 9 without repetition. |
| 12 | +The puzzle initially provides some numbers (called "givens") as clues. These numbers cannot be changed. |
| 13 | +The player's task is to fill in the remaining empty cells with numbers from 1 to 9, following the rules above. |
| 14 | + |
| 15 | +Opening the game: |
| 16 | +Clone the repository or download the sudoku.py file. |
| 17 | +Open the file in a Python environment (e.g., IDLE, Jupyter Notebook, or any text editor with Python support). |
| 18 | +Run the script to start the game. |
| 19 | + |
| 20 | +Requirements: |
| 21 | +import tkinter as tk |
| 22 | +from tkinter import messagebox,simpledialog |
| 23 | +import random |
| 24 | + |
| 25 | + |
| 26 | +Instructions to Play |
| 27 | +1. Run the game.Maximize the window. |
| 28 | +2. Select the level ("Easy","Medium","Hard") from the select level drop down. The grid will appear |
| 29 | +3. Select the cell you want to input. ("Input from 1-9") |
| 30 | +4. Finish Solving the puzzle and check your answer. |
| 31 | +5. Stuck at a particular stage? Use Solve button to view the solution |
| 32 | +6. You can use the new game button to create a new puzzle. |
| 33 | + |
| 34 | +Screenshots: |
| 35 | + |
| 36 | + |
0 commit comments