Skip to content

Commit

Permalink
finished simplification - corrected docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
egri-nagy committed Jan 24, 2024
1 parent 7e2933b commit 0c2b3d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lgo/grid.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
(defn envelope
"Returns the points that need to be occupied by enemy stones to surround
the group of stones. Note: this is not about a given board postion, just
a general computation - enemy stones are not checked.
Method: We compute all neighbours of the boundary, and remove the set
a general computation - colors of stones, and thus enemy stones
are not checked.
Method: We compute all neighbours of the set of stones, and remove the set
of original stones from that."
[stones width height]
(let [allneighbours (reduce (fn [r pt]
Expand Down

0 comments on commit 0c2b3d9

Please sign in to comment.