Permalink
Browse files

fixed NPE. Was caused by a typo in :south

  • Loading branch information...
1 parent 4369964 commit 71a7a88e7f01a0de80a4e15b2f43bb406305c553 @bolyuba bolyuba committed Dec 18, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/aichallenge/ant.clj
  2. +1 −1 src/aichallenge/bot.clj
View
@@ -108,7 +108,6 @@
rows (*game-info* :rows)
cols (*game-info* :cols)
[r c] (map + ant dir-vector)]
- (u/perrln "Ant: " ant " Dir: " dir)
[(cond
(< r 0) (+ rows r)
(>= r rows) (- r rows)
View
@@ -10,7 +10,7 @@
(defn- move
[offset]
(cond
- (= offset [1 0]) :souht
+ (= offset [1 0]) :south
(= offset [0 -1]) :west
(= offset [-1 0]) :north
(= offset [0 1]) :east))

0 comments on commit 71a7a88

Please sign in to comment.