Skip to content

Ravish108Coder/sudoku-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 

Repository files navigation

Sudoko Game

Participants:

1.Ayush kumar
2.Ravish kumar

It is a Console Interface Program with Object-Oriented Approach written in C++ to play the Game of Sudoku which can handle some of the commands like:

1. choose a mode of hardness out of 5 modes
2. Followed by Some commands to play game by user 
    2.1 (Row no.)(Col no.) (Value)
    2.2 focus digit
    2.3 quit
    2.4 hint (Row no.)(Col no.)
    2.5 help

This Console Application serves as a user interface to the user to play and solve the sodoku with the given option of hint and focus .

Table of Content:

    1. How to install and run the project
    2. Explanation of Project
    3. Tutorial of Project

1. How to install and run the project

    1. Open the Github Page where project is located.
    2. On top right corner click code buttton
    3. Copy HTTPS link
    4. use command "git clone < paste HTTPS link>"
    5. Then Compile and run the cpp file in your console.
    6. Choose the option on the display on the console and Enjoy the Game .
    
    (or)
    
    1. Open the Github Page where project is located.
    2. On top right corner click code buttton
    3. Click on Download Zip
    4. After download ,Extract the file 
    5. Then Compile and run the .cpp file in your console.
    6. Choose the option on the display on the console and Enjoy the Game.

2. Explanation of Project

    This project is based on object_Oriented Programmming
    The aim of this project is to apply OOPs concept to reduce , reuse and encapsulate it to improve the efficiency.

Class Structure of Project

    1. It consist of 3 classes , of which 
        - one class makes the question and answer ,
            + It makes the new question from the filled value of 5 modes of question with the help of suffling the positions of digits
            + And stores the solve solution of it
        - second class contains the features of the game and 
            + Features like hint,focus a column, etc
        - the third one deals with the user input and output.

3. Tutorial of Project

    After compiling the program on terminal or command prompt using command (g++ sudoku.cpp -o sudoku) in the same directory as of the code file.
    
    Run the file using command (./sudoku) or simply click on the sudoku.exe file gernerated by compiling the sudoku.cpp file
    
    It will give you interface like this:

image

    Based on Your choice of hardness of level, it will display the game like this:

image

image

How to use the Commands (This also you can find by typing help in the console) :
    #  (Row no.)(Col no.) (Value) is used for filling the sudoku ,
        =>>12 8 ,here 12 are row and col and 8 is value to be filled.

image

        when entered wrong value

image

    #  focus digit is used for focusing on any digit of sudoku,
        =>>focus 1 ,here 1 will be highlighted.

image

    #  quit is used for existing the problem.
       Also it will display sudoku solution as well...

image

    #  hint (Row no.)(Col no.) will show you what are the possible number to be filled at that row-col,
        =>> hint 12,here all the possible digit to be filled at 11 will be displayed.

image

4. UML DIAGRAM of Project

uml-sudoku

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%