Re: ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Sean Chalmers
Hrmm, I'll give that a try and see what I come up with. Thanks for the pointer about others, that makes sense. > wrote: > I would expect others to be either nil or a non-empty seq (never empty) but > empty? will return true on a nil, so that still works. I would have swapped > the cases and use

Re: ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Alex Miller
I would expect others to be either nil or a non-empty seq (never empty) but empty? will return true on a nil, so that still works. I would have swapped the cases and used seq as the test. However, without really reading this too closely, I'd guess the real problem is that you want to (apply mer

ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Sean Chalmers
Greetings ! I'm attempting to implement Othello in Clojure and I've run into a problem when actually running my game loop. On the first run through, everything works as expected, the black player can make their move, the board is updated and everything is awesome. However when the program loop