Skip to content

Sayplys/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

A simple Sudoku project designed to generate, validate, and solve Sudoku puzzles. This project provides functionalities for creating Sudoku boards, adding and removing numbers, and includes a user interface through terminal for interaction.

Primary Functionalities

  • Structure
    • Table
    • Add random values
      • Difficulty
    • Verify addition
  • Interaction
    • Add number to square
    • Remove number from square
  • Interface
    • Show table
    • Select square
    • Add number
    • Remove number
    • Show win
    • Make new game
    • Show answers
  • Implement solution algorithm
    • Create DLX double linked structure
    • Apply DLX algorithm

Secondary Functionalities

  • ...

Setup and Running Instructions

Prerequisites

  • Linux
  • C Compiler (e.g., GCC)

Build Instructions

  1. Clone the repository:

    git clone https://github.com/Sayplys/sudoku.git
    cd sudoku/
  2. Compile the project:

    gcc -o bin/sudoku.o src/main.c src/game/sudoku.c src/interface/displayer.c src/interface/handlers.c src/interface/listener.c src/solutionFinder/DLXSudoku.c src/solutionFinder/restrictionsMatrix.c -lm
  3. Run the executable:

    ./sudoku

Usage

  1. The program will generate a Sudoku board based on the specified difficulty level.
  2. Use arrow key to move throught board.
  3. Press a number and enter to put it.
  4. Press 's' to show solution.

Contribution

Feel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages