Xavier Shay
Member since Jan 11, 2011
- Profile: /members/7575-xavier-shay.htm
- URL: http://xaviershay.com
- Comments: 1
Recent Blog Comments By Xavier Shay
-
Seven Languages In Seven Weeks: Erlang - Day 2
Posted on Jan 11, 2011 at 3:07 PM
My attempt at a pattern matching solution: ttt(Board) -> case Board of [x, x, x, _, _, _, _, _, _] -> x; [_, _, _, x, x, x, _, _, _] -> x; [_, _, _, _, _, _, x, x, x] -> x; [x, _, _, _, x, _, _, _, x] -> x; [_, _, x, _, x, _, x, _, _] -> x; [o, o, o, _, _, _, _, _, _] -&g... read more »