diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
| commit | 6933f99ddb2d7103515d26838496309a807bba26 (patch) | |
| tree | 991c2fe7d4a57957222876e190fa4d16a0fb889c /examples/noc/test/wolfram_ca.script | |
| parent | 82fca5c9f29124f37f6dcd08e73e6999ce44a69d (diff) | |
| download | sketchbook-6933f99ddb2d7103515d26838496309a807bba26.tar.gz sketchbook-6933f99ddb2d7103515d26838496309a807bba26.zip | |
Move standalone sketches into sketchbook examples
Diffstat (limited to 'examples/noc/test/wolfram_ca.script')
| -rw-r--r-- | examples/noc/test/wolfram_ca.script | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/noc/test/wolfram_ca.script b/examples/noc/test/wolfram_ca.script new file mode 100644 index 0000000..da7f408 --- /dev/null +++ b/examples/noc/test/wolfram_ca.script @@ -0,0 +1,12 @@ +# One generation a step until the canvas is full, then it stops (noLoop). +# The first tick carries dt 0, so 10 frames are 9 steps. +frames 10 +expect generation 9 +# Rule 90 from one cell: row 2 is cells 30 and 34, row 3 is 29, 31, 33, 35. +expect rows[2][30] 1 +expect rows[2][32] 0 +expect rows[3][31] 1 +await generation 33 +frames 30 +expect generation 33 +screenshot .zig-cache/e2e/wolfram_ca.png |
