that mutation inside piece is > the only non-functional detail...everything else I am indeed returning new > boards, new pieces (promotion, death etc)... >
If I were you, I would look into a way to make Pieces pure too. Because their mutability cascades into the whole state and makes the description of the world non functional. If everything was functional, undoing and exploring the tree and so on would be straightforward. -- 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