From c31d62cd14d18c83554fec49270acae1c544bfdc Mon Sep 17 00:00:00 2001 From: polynoman Date: Fri, 29 Dec 2023 21:09:22 +0100 Subject: [PATCH] Rename 'path' variable to 'witchess_path' Rename 'path' variable to 'witchess_path'. 'path' is a reserved name and can't be used anymore. --- scripts/witchess_solver.ash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/witchess_solver.ash b/scripts/witchess_solver.ash index cd0282e..e4a3bf3 100644 --- a/scripts/witchess_solver.ash +++ b/scripts/witchess_solver.ash @@ -190,7 +190,7 @@ string ws_dirsToCoords(string dirs) { int move = 0; - int[string] path; + int[string] witchess_path; ws_matcher_rludConvert.reset(dirs); while (ws_matcher_rludConvert.find()) { @@ -229,7 +229,7 @@ string ws_dirsToCoords(string dirs) { ws_throwErr("Error occurs at move " + move); return ""; } - path[writeX + "," + writeY] = 0; + witchess_path[writeX + "," + writeY] = 0; } if (x != 0 || y != ws_puzzleDimX * 2) { @@ -237,10 +237,10 @@ string ws_dirsToCoords(string dirs) { ws_throwErr("dimX: " + ws_puzzleDimX + " dimY:" + ws_puzzleDimY); } - sort path by index; + sort witchess_path by index; string result = ""; - foreach coord, val in path { + foreach coord, val in witchess_path { result += "|" + coord; }