From 231612cce47c941f3a68b8ad046caed88948de25 Mon Sep 17 00:00:00 2001 From: Reza Behzadan Date: Thu, 28 May 2020 22:49:22 +0430 Subject: [PATCH] fix board file path --- config.lua | 4 +++- main.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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)