Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

part #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

part #432

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/sudoku.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
(def board identity)

(defn value-at [board coord]
nil)
(get-in board coord))

(defn has-value? [board coord]
nil)
(not (zero? (value-at board coord))))

(defn row-values [board coord]
nil)
(defn row-values [board [row col]]
(set (get board row)))

(defn col-values [board coord]
nil)
(defn col-values [board [row col]]
(reduce (fn [x y] (conj x (get y col))) #{} board))

(defn coord-pairs [coords]
nil)
(for [x coords
y coords]
[x y]))

(defn block-values [board coord]
nil)
Expand All @@ -28,7 +30,7 @@
nil)

(defn rows [board]
nil)
(map set board))

(defn valid-rows? [board]
nil)
Expand Down