On Fri, Apr 20, 2012 at 7:07 AM, Walter van der Laan <waltervanderl...@gmail.com> wrote: > You could start with pure functions to handle the game logic, e.g.:
We did this during swarm coding at ClojureWest on the game of Go, but you could apply the same logic to any board game: https://github.com/technomancy/swarm-go/blob/master/src/swarm/go.clj (ignore the atom at the top; it's not used) Basically it's implemented in terms of reduce where the accumulator is the board state and the sequence is the list of moves. You can use the reductions function to get access to each intermediate state lazily. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en