Removed neighbour generation out of the core library main
authorNeil Smith <NeilNjae@users.noreply.github.com>
Fri, 8 Sep 2023 09:55:42 +0000 (10:55 +0100)
committerNeil Smith <NeilNjae@users.noreply.github.com>
Fri, 8 Sep 2023 09:55:42 +0000 (10:55 +0100)
riddle_definitions.md

index da25f927c3eafc5f76b6ec1fc974e998a23d6f65..1db01f7b1bcc338759f74ee6f8e6a9569b2622e3 100644 (file)
@@ -121,19 +121,6 @@ def edit_distance(s: str, t: str) -> int:
   return res
 ```
 
-```python
-dictionary_neighbours = {
-  w: [o for o in dictionary
-      if edit_distance(w, o) <= 5
-      if not set(w) <= set(o)
-      if not set(o) <= set(w)]
-  for w in dictionary}
-
-dictionary_neighbours = {w: ns 
-                         for w, ns in dictionary_neighbours.items()
-                         if ns}
-```
-
 ```python
 def collapse_riddle_clues(elems : Riddle) -> RiddleElems:
   """Combine the two parts of a riddle line into one element for solving.