Victor K.
Reputation
1,229
Top tag
Next privilege 2,000 Rep.
 Mar 31 awarded Popular Question Jan 3 awarded Popular Question May 30 awarded Yearling Jan 2 awarded Nice Question Nov 8 awarded Popular Question Sep 30 awarded Explainer May 30 awarded Yearling May 16 revised Symbolic tensor product calculation Added LaTeX form of the expression May 16 suggested approved edit on Symbolic tensor product calculation May 2 revised How to exchange two arguments? fixed grammar and formatting (removed bold) May 2 suggested approved edit on How to exchange two arguments? Apr 30 comment Detecting patterns of black and white stones on a 2D board @Mr.Wizard - thanks for the pointer, I have somehow missed it. Apr 27 accepted Detecting patterns of black and white stones on a 2D board Apr 27 comment Detecting patterns of black and white stones on a 2D board I had a hard time choosing between your solution and Mr.Wizard's, but I decided to go with his as it can be better generalized for a 2D (not linear) patterns, which strictly speaking was my original question, even though for my needs linear patterns will probably be enough. I'm still very grateful for you sharing your solution - I think I'm finally starting to appreciate the beauty of Reap and Sow. Apr 27 comment Detecting patterns of black and white stones on a 2D board @Mr.Wizard - do you know a good place to read more about CellularAutomaton? The built-in documentation is quite sparse - I don't fully understand what each of the different types of rule mean. I have Wolfram's NKS, but I've only read through first couple of chapters - is it described there? Apr 27 comment Detecting patterns of black and white stones on a 2D board Ok, I fully understood your solution, and it's beautiful. I can see now how I can add diagonal and non-linear patterns, too. Apr 25 comment Detecting patterns of black and white stones on a 2D board @Pellesatansfant - thanks for the effort, but as the others have pointed out already, your solution is probably not very useful to me, for two reasons: 1) I want a Mathematica solution, and 2) Your solution doesn't really allow to define new patterns easily. Apr 25 comment Detecting patterns of black and white stones on a 2D board Is there a way to define new patterns easily, similar to my matchPattern below? Apr 25 comment Detecting patterns of black and white stones on a 2D board Thanks George - and +1 for a nice reversi visual. It looks like what you are suggesting here is somewhat similar to my solution below, but I would need to spend some time to truly understand what you are doing there. Apr 25 comment Detecting patterns of black and white stones on a 2D board Thanks Mr. Wizard. Although it doesn't fully answer my question, it is very inspirational. I will try to wrap my head around some of the new idioms that you are showing here over the weekend.