Skip to content

ljkbennett/ex_sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExSudoku

To run the tests: mix test

To solve a sudoku:

  • build the board as a list of lists, with a 0 representing each empty square, e.g.:
      board = [
        [8,3,0, 1,0,0, 6,0,5],
        [0,0,0, 0,0,0, 0,8,0],
        [0,0,0, 7,0,0, 9,0,0],
    
        [0,5,0, 0,1,7, 0,0,0],
        [0,0,3, 0,0,0, 2,0,0],
        [0,0,0, 3,4,0, 0,1,0],
    
        [0,0,4, 0,0,8, 0,0,0],
        [0,9,0, 0,0,0, 0,0,0],
        [3,0,2, 0,0,6, 0,4,7]
      ]
    
  • solve the board with the command: ExSudoku.Solver.solve(board)

TODO:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages