aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-076/tyler-wardhaugh/clojure/src/tw/weekly/ch_2.clj5
1 files changed, 2 insertions, 3 deletions
diff --git a/challenge-076/tyler-wardhaugh/clojure/src/tw/weekly/ch_2.clj b/challenge-076/tyler-wardhaugh/clojure/src/tw/weekly/ch_2.clj
index cd5109aab1..4b4e2e7279 100644
--- a/challenge-076/tyler-wardhaugh/clojure/src/tw/weekly/ch_2.clj
+++ b/challenge-076/tyler-wardhaugh/clojure/src/tw/weekly/ch_2.clj
@@ -1,5 +1,4 @@
(ns tw.weekly.ch-2
- (:require [clojure.edn :as edn])
(:require [clojure.java.io :as io])
(:require [clojure.string :as str])
(:require [clojure.core.matrix :as mat]))
@@ -50,8 +49,8 @@
(defn -main
"Run Task 2 with a grid file and a dictionary file, defaulting to the ones in the resources directory."
[& args]
- (let [grid-file (or (some-> args first edn/read-string) (io/resource "grid.txt"))
- dict-file (or (some-> args second edn/read-string) (io/resource "dict.txt"))
+ (let [grid-file (or (some-> args first io/file) (io/resource "grid.txt"))
+ dict-file (or (some-> args second io/file) (io/resource "dict.txt"))
grid (parse-grid-file grid-file)
dict (parse-dict-file dict-file)
words (word-search grid dict)]