CA script in Scratch

For scripts to aid with computation or simulation in cellular automata.
Post Reply
User avatar
gameoflifemaniac
Posts: 1242
Joined: January 22nd, 2017, 11:17 am
Location: There too

CA script in Scratch

Post by gameoflifemaniac » March 5th, 2018, 12:37 pm

https://scratch.mit.edu/projects/213417388/

The instructions and features are in the description. Tell me what do you think about it!
Last edited by gameoflifemaniac on March 30th, 2018, 5:23 pm, edited 1 time in total.
I was so socially awkward in the past and it will haunt me for the rest of my life.

Code: Select all

b4o25bo$o29bo$b3o3b3o2bob2o2bob2o2bo3bobo$4bobo3bob2o2bob2o2bobo3bobo$
4bobo3bobo5bo5bo3bobo$o3bobo3bobo5bo6b4o$b3o3b3o2bo5bo9bobo$24b4o!

User avatar
gameoflifemaniac
Posts: 1242
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: CA script in Scratch

Post by gameoflifemaniac » March 10th, 2018, 7:15 am

Hello?
I was so socially awkward in the past and it will haunt me for the rest of my life.

Code: Select all

b4o25bo$o29bo$b3o3b3o2bob2o2bob2o2bo3bobo$4bobo3bob2o2bob2o2bobo3bobo$
4bobo3bobo5bo5bo3bobo$o3bobo3bobo5bo6b4o$b3o3b3o2bo5bo9bobo$24b4o!

User avatar
77topaz
Posts: 1496
Joined: January 12th, 2018, 9:19 pm

Re: CA script in Scratch

Post by 77topaz » March 10th, 2018, 7:43 am

It still shows the same glitchy behaviour at edges for B0 rules, and it's still rather slow, but it's definitely an improvement over the previous version - being able to add cells using the mouse is particularly nice compared to the keyboard-only method used before.

User avatar
gameoflifemaniac
Posts: 1242
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: CA script in Scratch

Post by gameoflifemaniac » March 10th, 2018, 8:34 am

77topaz wrote:It still shows the same glitchy behaviour at edges for B0 rules, and it's still rather slow, but it's definitely an improvement over the previous version - being able to add cells using the mouse is particularly nice compared to the keyboard-only method used before.
So, how do I make it faster?
And you tested the 25*25 or the 19*19 version?
I was so socially awkward in the past and it will haunt me for the rest of my life.

Code: Select all

b4o25bo$o29bo$b3o3b3o2bob2o2bob2o2bo3bobo$4bobo3bob2o2bob2o2bobo3bobo$
4bobo3bobo5bo5bo3bobo$o3bobo3bobo5bo6b4o$b3o3b3o2bo5bo9bobo$24b4o!

User avatar
77topaz
Posts: 1496
Joined: January 12th, 2018, 9:19 pm

Re: CA script in Scratch

Post by 77topaz » March 10th, 2018, 3:34 pm

The 25*25 one. Note that I don't see any option to change to 19*19 or anything like that.

User avatar
gameoflifemaniac
Posts: 1242
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: CA script in Scratch

Post by gameoflifemaniac » March 11th, 2018, 10:14 am

I drastically improved the script. It will get better and better!
I was so socially awkward in the past and it will haunt me for the rest of my life.

Code: Select all

b4o25bo$o29bo$b3o3b3o2bob2o2bob2o2bo3bobo$4bobo3bob2o2bob2o2bobo3bobo$
4bobo3bobo5bo5bo3bobo$o3bobo3bobo5bo6b4o$b3o3b3o2bo5bo9bobo$24b4o!

User avatar
gameoflifemaniac
Posts: 1242
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: CA script in Scratch

Post by gameoflifemaniac » March 30th, 2018, 5:23 pm

The link changed because hacking the script to allow to join the x = , y = , rule = string and the RLE with the next line character required uploading the script to the website and then downloading it again in zip format to edit it in the .json file and then again uploading it:
https://scratch.mit.edu/projects/213417388/
Copying patterns is added.
I was so socially awkward in the past and it will haunt me for the rest of my life.

Code: Select all

b4o25bo$o29bo$b3o3b3o2bob2o2bob2o2bo3bobo$4bobo3bob2o2bob2o2bobo3bobo$
4bobo3bobo5bo5bo3bobo$o3bobo3bobo5bo6b4o$b3o3b3o2bo5bo9bobo$24b4o!

Post Reply