Skip to content

A generator for "sandwich sudoku" puzzles

Notifications You must be signed in to change notification settings

gareththomasnz/sandwich-sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sandwich Sudoku

A generator for "sandwich sudoku" puzzles, as seen the in The Guardian

Sandwich sudoku follows the same general format as regular sudoku, but has fewer tiles revealed at the start. In order to ensure that the puzzles are still solvable, listed beside each row and under each column is a number. This number is the sum of the numbers between the 1 and the 9 in that row or columns as seen below: s Using this information, one can eventually get to the solution:

s

In order to produce these, I downloaded a dataset of over 1 million solved sudoku games from kaggle, then randomly chose a single solved game. Next, the row and column sums were calculated and drawn onto the game, forming the solution picture. To make the puzzle from that, most numbers are removed from the board, leaving just a few hints. So, when the program is run, the unsolved puzzle will pop up, and the solution will be saved as a png file. Next, I may work on a graphical version of the generator, possibly for the web.

About

A generator for "sandwich sudoku" puzzles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages