--- a/main_testing2/wordle_test7.scala Thu Nov 02 13:53:37 2023 +0000
+++ b/main_testing2/wordle_test7.scala Thu Nov 02 23:34:53 2023 +0000
@@ -1,25 +1,28 @@
-
-import M2._
-
-import io.Source
-def urban_get_wordle_list(url: String) : List[String] = {
- Source.fromFile(url)("ISO-8859-1").getLines().toList
-}
-val urban_secrets = urban_get_wordle_list("wordle.txt")
+def urbanmain() = {
+ import M2._
+
+ import io.Source
+
+
+ def urban_get_wordle_list(url: String) : List[String] = {
+ Source.fromFile(url)("ISO-8859-1").getLines().toList
+ }
+ val urban_secrets = urban_get_wordle_list("wordle.txt")
-//val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
-//val urban_secrets = get_wordle_list(urban_wordle_url)
+ //val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
+ //val urban_secrets = get_wordle_list(urban_wordle_url)
-assert(ranked_evil(urban_secrets, "abbey") == List("whizz"))
-assert(ranked_evil(urban_secrets, "afear") == List("buzzy"))
-assert(ranked_evil(urban_secrets, "zincy") == List("jugum"))
-assert(ranked_evil(urban_secrets, "zippy") == List("chuff"))
+ assert(ranked_evil(urban_secrets, "abbey") == List("whizz"))
+ assert(ranked_evil(urban_secrets, "afear") == List("buzzy"))
+ assert(ranked_evil(urban_secrets, "zincy") == List("jugum"))
+ assert(ranked_evil(urban_secrets, "zippy") == List("chuff"))
-assert(ranked_evil(urban_secrets, "beats") == List("fuzzy"))
-assert(ranked_evil(urban_secrets, "vitae") == List("fuzzy"))
-assert(ranked_evil(urban_secrets, "bento") == List("fuzzy"))
-assert(ranked_evil(urban_secrets, "belts") == List("fuzzy"))
+ assert(ranked_evil(urban_secrets, "beats") == List("fuzzy"))
+ assert(ranked_evil(urban_secrets, "vitae") == List("fuzzy"))
+ assert(ranked_evil(urban_secrets, "bento") == List("fuzzy"))
+ assert(ranked_evil(urban_secrets, "belts") == List("fuzzy"))
+}