Skip to content

karpo27/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

Badge en Desarollo

Classic Sudoku game coded in Python

img.png

Table of Contents:

Installation

For playing you need to:

1- Download the code from this repository.

2- To play this game, you'll need to have Python 3 installed on your machine. If you don't have it, you can download and install it from the official - Python website: https://www.python.org/downloads/

3- Run main.py in VSC, Pycharm, etc. or open it in console.

Gameplay - Rules

  1. Sudoku is a 9-by-9 grid puzzle in which the grid is divided into 3-by-3 boxes
  2. Every row, column and box must contain the numbers 1 through nine 9, no repeats.
  3. Most sudoku puzzles come with a few of the boxes already filled in, so you can use those freebie clues as a jumping off point for solving and work backwards. The fewer numbers already filled in, the more difficult it will be.\n"
  4. The only hard and fast rule is not to repeat numbers: » Each row should have numbers 1-9, no repeats. » Each column should have numbers 1-9, no repeats. » Each 3x3 box should have numbers 1-9, no repeats.
  5. For picking a number in the grid you must follow this order: First choose a box. Grid is divided in 1-9 boxes.

image

Then choose a cell in the box. Box is divided in 1-9 cells:

image

And finally select which number 1-9 you want yo put in each cell. Example: 1 3 8

image

Modes

There are three difficulty modes to choose from:

  • Easy
  • Medium
  • Hard

Technologies Used

This game was written in Python 3, and makes use of the following modules:

  • random: Used for a short pause between moves to make the game feel more natural.
  • sqlite3: Used to save scores in a database based on player's name. The game automatically saves your progress, you can check your stats at any time.

Contributing

This project is open for contributions from anyone who wants to improve it. If you'd like to contribute, feel free to fork the repository, make your changes, and submit a pull request

Enjoy it!

karpo27

How to reach me:

LinkedIn E-Mail