diff --git a/config.lua b/config.lua index 62e90f6..ea49276 100644 --- a/config.lua +++ b/config.lua @@ -1,5 +1,7 @@ return { - board = "/home/reza/p/lua/22.sudoku/boards/veryhard/27.txt", + board = { + filePath = "boards/040.txt", + }, window = { bgColor = "FFFFFF", width = nil, diff --git a/main.lua b/main.lua index 7142690..3733b7b 100644 --- a/main.lua +++ b/main.lua @@ -11,7 +11,7 @@ function love.load() love.mouse.setGrabbed(false) love.keyboard.setKeyRepeat(true) math.randomseed(os.time()) - local board = loadBoard("/home/reza/p/lua/22.sudoku/boards/veryhard/27.txt") + local board = loadBoard(config.board.filePath) local width, height = love.graphics.getDimensions() sudokuCanvas = SudokuCanvas:new(200, 100, height/1.5, config.SudokuCanvas) sudokuCanvas:setBoard(board)