[Welcome to Sensei's Library!]

StartingPoints
ReferenceSection
About


Referenced by
TheCodeSoFar
TheCodeSoFarABett...

 

The Code So Far - Eyes
   

Eyes had to come up eventually, and they do in problem #41:

[Diagram]
Diag.: Black to save the marked stones.


Sure enough, my solver commits suicide on this problem by filling in its own eyes. I thought this was going to be a tough problem to fix, but it turned out the UnifiedHandwavingTheory? already had a solution: allow players to pass and consider a line solved if both players pass. This is too cool! The code has no concept of eyes, two eyes = life, etc. I'm happy - eye space has always been a slightly bogus concept in my mind.

Five lines of code later:


[Diagram]
Diag.: 1-41: Solution


It shoots, it scores:

[Diagram]
Diag.: Black to save the marked stones.


[Diagram]
Diag.: 1-43: Solution


This is a copy of the living page "The Code So Far - Eyes" at Sensei's Library.
(C) the Authors, published under the OpenContent License V1.0.