The solver algorithm is described on Wikipedia. To know more about the Lights Off game: &lt;http://en.wikipedia.org/wiki/Lights_Out_(game)gt;
Tha an algairim fhuasglaidh ga mìneachadh air an Uicipeid. Gus barrachd faighinn a-mach mu gheama cur nan solasan dheth: &lt;http://en.wikipedia.org/wiki/Lights_Out_(game)gt;