Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the solutions of the Lights Out game
ResourceFunction["LightsOutSolution"][rank] gives the essential solution to the standard Lights Out game of the given rank. |
| "Unique" | give a single solution |
| "All" | give all solutions |
| "AllCount" | count all solutions |
| "Essential" | give all essential solutions |
| "EssentialCount" | count all essential solutions |
Get a solution of the rank-5 Lights Out game:
| In[1]:= |
| Out[1]= |
Visualize this solution:
| In[2]:= |
| Out[3]= | ![]() |
Give a solution:
| In[4]:= |
| Out[4]= |
Give all the solutions:
| In[5]:= |
| Out[5]= | ![]() |
Count all solutions:
| In[6]:= |
| Out[6]= |
An essential solution means there is no other rotation-reflection inequivalent solutions:
| In[7]:= |
| Out[7]= | ![]() |
Count essential solutions:
| In[8]:= |
| Out[8]= |
Complex and beautiful patterns arise when the order is high:
| In[9]:= |
| Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License