Currently hosted at https://sudoku.tn1ck.com. It's still WIP, but almost there.
This project aims to be a sudoku app with everything included. An open source sudoku that is on par with all commercial applications. Why? Because my Grandma wanted to play a Sudoku once and I didn't like all the available offers. This has changed since then, but having an open source version will hopefully help people in the future.
- Solving of sudokus
- Generation of sudokus in different difficulties
- Creating a responsive web-app that works on mobile as good as on desktop
- Providing hints to actually provide a real value over paper based sudokus
- Shortcuts
- Save results of the user
- Time keeps going when you select a new game.
- When you scroll all the way to the bottom the modal itself scrolled and the tab bar got hidden. Make sure that the modal is never higher than 100vh.
- Show a message when the user won
- If a number is set, remove the notes that conflict with that number. Also when a hint is used.
- Keep the notes, even if a number is set
- Provide motivating animations when finishing a line/square
- Offer users to generate their own unique sudokus
- Add option to disable number highlights
- If tabs are switched, scroll to top
yarn install
yarn start
The app should be available on https://localhost:3000
.
A generator was build to create an infinite amount of sudokus for every difficulty Level. The generator is mostly based on the paper "Rating and Generating Sudoku Puzzles Based On Constraint Satisfaction Problems". Currently I include a few hundred sudokus with this app, in the future it would be nice if a user could generate more if he would like to / having an interface to create new sudokus.
There are two scripts included in this project:
generate_sudokus.ts
- given a difficulty level and number of sudokus it will generate these and append the results to thesudokus.txt
fileread_sudokus.ts
- reads thesudokus.txt
file and creates asudokus.json
which is used in the application itself. It adds some more data and changes the datastructure. The contents need then to be placed insrc/assets/sudokus.ts
. I also format the file with prettier, to make it prettier.
Every contribution is welcome! Simply fork the project and create a PR.