Skip to content

A sudoku grid generator with simple styling and PDF document generation feature

Notifications You must be signed in to change notification settings

AndriusSton/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Sudoku game project

Grid generation

App generates 9x9 sudoku grid with a selected difficulty level. Grid generation is based on backtracking-like algorithm. The grid generated is just an 81 size array of numbers 0-9. The levels are hardcoded:

  • EASY (20 empty cells);
  • MEDIUM (40 empty cells);
  • HARD (50 empty cells).

Endpoints

There are five endpoints/services. In depth docs of endpoints TBD.

  • get_puzzle - returns a json of a grid;
  • check - checks differences between initial grid and solution provided, returns array of wrong cell indexes;
  • solve - takes an initial grid and returns a solved grid;
  • get_pdf - returns a generated PDF doc based on sudoku grid settings: number of grids, difficulty level;
  • save - Under construction - saves game effort to cookies.

PDF doc generator

PDF document generation is based on tecnickcom/tcpdf

Live project

https://game-sudoku.herokuapp.com

You can get grid via urls:

About

A sudoku grid generator with simple styling and PDF document generation feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published