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

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

2013-12-04 Thread Sean Chalmers
gt; 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 merge fst others) since others is a seq of maps. > > > On Wednesday, December 4, 2013 10:24:42 AM UTC-6, Sean Chalmers wrot

Re: Othello from PAIP in Clojure

2013-12-13 Thread Sean Chalmers
I'm running out of break time so I'll have to give this a look over a bit later, looks pretty good from a quick scan though! Interested to dive in the guts of it! :) If you're interested, this is my not-yet-finished implementation of Othello: https://github.com/mankyKitty/clojure-othello . I ha

Re: Othello from PAIP in Clojure

2013-12-16 Thread Sean Chalmers
I don't really have anything to critique, merely observe... ;) I find your implementation interesting because you chose to use two dimensional arrays to represent the board, I initially went down that road with mine but in the end went with a single list because I found it easier to handle the

Unseemingly Eager Clojure Apprentice Seeking FizzBuzz Feeback

2012-12-29 Thread Sean Chalmers
Greetings all! I'm just starting out in the so far wonderful world of Clojure and to help me get started I had a crack at one of my favourites, the FizzBuzz program. For anyone that isn't familiar with FizzBuzz, it is designed to count from 1 to N and take the following actions when certain con

Re: Unseemingly Eager Clojure Apprentice Seeking FizzBuzz Feeback

2012-12-29 Thread Sean Chalmers
'll have a play with 'when' as well, hadn't tried that one yet. Thanks again and I look forward to showing off some Clojure creations in the wild soon. On Saturday, 29 December 2012 22:35:38 UTC+10, Sean Chalmers wrote: > > Greetings all! > > I'm just starting