one step

the glider


This is what we are aiming for.

This is a working demo.

You'll see why it's called the glider.


So we need a one_step function and a one step button.


The function is real easy:

function one_step() {
  gen();
  draw();
}

... so too is the button ... we'll worry about layout later :

<body>
  <script>squares(); klear(); draw();</script>
  <div class='button' onClick='one_step();'>one step</div>
</body>

Put a glider on your grid, click the button and cross your fingers!