I hereby claim:
- I am baz44 on github.
- I am baself (https://keybase.io/baself) on keybase.
- I have a public key whose fingerprint is E379 526D EBD7 CDE2 EAD0 E354 BB62 0AA1 0665 7FCE
To claim this, I am signing this object:
| (ns tic-tac-toe.core) | |
| (def board-size 3) | |
| (defn winner [board] | |
| "It takes a board and checks for a winner, returns nil if no winner is found" | |
| (let [rows board | |
| columns (apply mapv vector board) | |
| diagonal (mapv #(get-in board [% %]) (range board-size)) | |
| anti-diagonal (mapv #(get-in board [% (- (dec board-size) %)]) (range board-size))] |
I hereby claim:
To claim this, I am signing this object: