From ac7017871db4050603b0c922559ea94f29d0e225 Mon Sep 17 00:00:00 2001 From: Adam French Date: Fri, 21 Nov 2025 23:30:11 +0000 Subject: [PATCH] test --- html/js/mobile-automata.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/js/mobile-automata.mjs b/html/js/mobile-automata.mjs index e09c8b1..e03d2cc 100644 --- a/html/js/mobile-automata.mjs +++ b/html/js/mobile-automata.mjs @@ -275,7 +275,9 @@ export function renderToCanvas(canvas, width, height, sn = 13252213, dn = 180) { const r = 1; const n = 2 * r + 1; const rules = toMaRule(sn, dn, n, 2); - let states = Array.from({ length: height }, () => Array(width).fill(0)); + let states = Array.from({ length: height }, () => + Array.from({ length: width }, () => Math.round(Math.random())), + ); let head = Math.floor(width / 2) % width; let row_num = 0;