running = 0;
});
+ $('#controls #reseed-automaton').click(function(e){
+ if (running) clearInterval(tickID);
+ $('#controls #stop-automaton').hide();
+ $('#controls #start-automaton').show();
+ running = 0;
+ automaton = new universe;
+ });
+
$('#2d-automaton').click(function(e) {
if (!running) {
var x = e.pageX - $('#2d-automaton').offset().left;
<br><br>
<span id='start-automaton' class='control'>Start automaton</span>
<span id='stop-automaton' class='control'>Stop automaton</span>
+ <span id='reseed-automaton' class='control'>Reseed automaton</span>
</div>
</div>
<div id='1d-container'>