User blog comment:Sinthorion/Lights Out (a wikicode game)/@comment-8-20150730040309/@comment-27723099-20150801171606

Thanks.

Applying a random pattern when the page is loaded is possible, but it would make the code more complex, doubling the code length of the main part of the game (that defines the pattern itself). Also it would make the solution helper unusable. The way how I made the pattern generator (simply choosing a random state for each field) is incompatible with the solution helper.

I could make a different pattern generator that actually activates fields just like a player. This generator would be more complex but it had two advantages: I could define a difficulty for the pattern (how many fields are activated at most) and the generatorwould be compatible with the solution helper.