about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--META6.json2
-rw-r--r--README32
-rw-r--r--README.org31
-rw-r--r--lib/Octans/Puzzle.rakumod2
4 files changed, 63 insertions, 4 deletions
diff --git a/META6.json b/META6.json
index b92df2b..7ea4b97 100644
--- a/META6.json
+++ b/META6.json
@@ -1,7 +1,7 @@
 {
     "name" : "octans",
     "auth" : "github:andinus",
-    "version" : "0.1.4",
+    "version" : "0.2.0",
     "description" : "Octans is a program to solve Algot's Wordplay (Wordsearch) puzzles",
     "authors" : [ "Andinus <andinus@nand.sh>" ],
     "license" : "ISC",
diff --git a/README b/README
index 0fbc112..d143358 100644
--- a/README
+++ b/README
@@ -159,10 +159,40 @@ verbose
 News
 ════
 
+v0.2.0 - 2021-03-04
+───────────────────
+
+  ⁃ Removed `sample' option
+
+    `--sample' will not solve the sample puzzle.
+
+  ⁃ Removed shorthand for verbose option
+
+    `-v' won't work in `v0.2.0'.
+
+  ⁃ Change representation of visited squares
+
+    When `--verbose' was passed, it would print the solved puzzle with
+    visited squares replaced with fancy characters. Now it marks them by
+    adding:
+
+    • `*' to visited + gray squares (start positions)
+    • `/' to visited squares
+
+  ⁃ Removed time taken
+
+    Time taken won't be printed anymore.
+
+          It was misleading because the time printed was not the
+          time taken to find that specific word, it was the time
+          taken to find all the words upto that word. It would
+          reset for each starting position.
+
+
 v0.1.4 - 2021-02-19
 ───────────────────
 
-  ⁃ Fix the puzzle parsing regex
+  ⁃ Fixed the puzzle parsing regex
 
     The older regex fails to parse this puzzle:
     <https://mastodon.art/@Algot/105690195742318751>.
diff --git a/README.org b/README.org
index 300fa44..2ecd84b 100644
--- a/README.org
+++ b/README.org
@@ -110,9 +110,38 @@ This will increase verbosity.
 
 * News
 
+** v0.2.0 - 2021-03-04
+
++ Removed ~sample~ option
+
+  ~--sample~ will not solve the sample puzzle.
+
++ Removed shorthand for verbose option
+
+  ~-v~ won't work in ~v0.2.0~.
+
++ Change representation of visited squares
+
+  When ~--verbose~ was passed, it would print the solved puzzle with
+  visited squares replaced with fancy characters. Now it marks them by
+  adding:
+
+  - ~*~ to visited + gray squares (start positions)
+  - ~/~ to visited squares
+
++ Removed time taken
+
+  Time taken won't be printed anymore.
+
+  #+begin_quote
+  It was misleading because the time printed was not the time taken to
+  find that specific word, it was the time taken to find all the words
+  upto that word. It would reset for each starting position.
+  #+end_quote
+
 ** v0.1.4 - 2021-02-19
 
-+ Fix the puzzle parsing regex
++ Fixed the puzzle parsing regex
 
   The older regex fails to parse this puzzle:
   https://mastodon.art/@Algot/105690195742318751.
diff --git a/lib/Octans/Puzzle.rakumod b/lib/Octans/Puzzle.rakumod
index e88a74a..8e184f8 100644
--- a/lib/Octans/Puzzle.rakumod
+++ b/lib/Octans/Puzzle.rakumod
@@ -19,7 +19,7 @@ class Puzzle is export {
     method gray-squares() { @!gray-squares; }
 
     # Given $y, $x where $y is row index & $x is column index,
-    # is-gray-square returns if the cell is a gray square.
+    # is-gray-square returns if the square is a gray square.
     method is-gray-square(Int $y, Int $x) {
         return so @!gray-squares.grep(($y, $x));
     }