Git Product home page Git Product logo

sudoku-game-using-threads's Introduction

Sudoku Validator and Solver

This project is a sudoku validator and solver that uses threads and mutex for synchronization. It is capable of checking for duplicate entries in rows, columns, and 3x3 grids, and can also solve for missing numbers in a given sudoku puzzle.

Features

  • Validation of sudoku puzzle for duplicate entries in rows, columns, and 3x3 grids
  • Solution of sudoku puzzle for missing numbers in rows, columns, and 3x3 grids
  • Use of threads and mutex for synchronization
  • Cancellation of threads using pthread_cancel() when necessary

Usage

To use this project, you will need to call the following functions from the main() function:

  • void *Column_Validation(void *args): Validates the sudoku puzzle for duplicate entries in columns.
  • void *Row_Validation(void *args): Validates the sudoku puzzle for duplicate entries in rows.
  • void *three_Grid_Validation(void *args): Validates the sudoku puzzle for duplicate entries in 3x3 grids.
  • void *suduko_rowsolver(void *args): Solves for missing numbers in rows of the sudoku puzzle.
  • void *suduko_colsolver(void *args): Solves for missing numbers in columns of the sudoku puzzle.
  • void *suduko_3x3solver(void *args): Solves for missing numbers in the 3x3 grids of the sudoku puzzle.
  • These functions can be called using the pthread_create() function. The pthread_cancel() function can be used to cancel threads as necessary.

sudoku-game-using-threads's People

Contributors

ahmed8047762 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.