Add method to return active square - crossword.koplugin - Unnamed repository; edit this file 'description' to name the repository. (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit d259297e2b02603efacad54c69c59ba8ec088634 (DIR) parent 7c496bb85192d741804d6afc32ab3bd843726158 (HTM) Author: Scarlett <social@scarlettmcallister.com> Date: Fri, 17 Dec 2021 10:25:20 -0400 Add method to return active square Diffstat: M puzzle.lua | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- (DIR) diff --git a/puzzle.lua b/puzzle.lua @@ -121,6 +121,10 @@ function Puzzle:getGrid() return self.grid end +function Puzzle:setActiveSquare(row, col) + self.active_square_index = ((row - 1) * self.size.rows) + col +end + function Puzzle:getSquareAtPos(row, col) local index = ((row) * self.size.rows) + col return self.solves[index]