About this game EUREKA LAB
Development notes
Placements, not scores
The browser never reports stars. It sends the list of placed parts, and the server runs the same experiment code to decide whether the stage is solved. A guest's best solutions are kept on the device and rechecked by the server when the player signs in. The engine uses only whole numbers and basic arithmetic, so the browser and the server always reach the same result.
A circuit solver on a grid
Every tile edge is a node, and even wire pieces are tiny resistors, so the animation knows the current in each piece of wire. Cells are 1 V sources with a small internal resistance, bulbs are 1 Ω, and diodes are solved by switching them on or off until the result is consistent. Stages with lettered switches are solved once for every switch combination, which is how the AND, OR and NOT stages are checked.
Checking all 50 stages
Every stage ships with a reference solution, and automated tests run all 50 and confirm that an empty board fails. I also searched every placement using fewer parts than the reference, up to about four million combinations for the hardest stages. That search found shorter solutions for three stages, and those became the references.
Updated: