söndag 15 december 2013

I love sets!

Yesterday was Global Day of Coderetreat and so we spent a couple of sessions at work to pound on solving Conways Game of Life with different approaches and/or languages for each session. Just like last time I was to a coderetreat we never really managed to finish the problem in any of the sessions (and that is not the point of the sessions really). But, during the day there was an idea of an implementation that emerged in my head and that I really wanted to try out. So I spent an hour yesterday evening getting it done. The result (in Python) can be found here https://gist.github.com/tobgu/7970432. I think it's quite nice, compact but still not entirely unreadable. ;-)

Once again I'm struck by how well sets are suited to solving certain types of problems.