Author Topic: Cellular Automata (Assembly)  (Read 1335 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4669
  • Rating: +718/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Cellular Automata (Assembly)
« on: February 04, 2012, 04:17:34 pm »
Stemming from my attempt in Grammer, I ported my automata generator to assembly. This version takes an input through Ans for the rule set (0 to 255)  and modifies the graph screen accordingly. it starts at the top of the screen and makes its way to the bottom. Oh, and the program 114 bytes :)


EDIT: I added a picture of rule 57 because it looks so cool!

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #1 on: February 05, 2012, 07:52:48 pm »
Yay more cellular automata! Ever thinking about making 2D cellular automata?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4669
  • Rating: +718/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #2 on: February 05, 2012, 08:29:32 pm »
O.O What is 2D cellular automata?

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #3 on: February 05, 2012, 08:31:03 pm »
The Game of Life

It follows the ruleset 3/23, but a customizable ruleset would be amazing :)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #4 on: February 05, 2012, 08:39:43 pm »
O.O What is 2D cellular automata?

2D automata are exactly like the 1D elementary automata you programmed, except the neighborhood of cells to be tested is 2 dimensional rather than 1 dimensional.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4669
  • Rating: +718/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #5 on: February 05, 2012, 08:47:34 pm »
O.O Using the ruleset method I came up with, I would need to use a 256 bit input O.O I could definitely give it a try, but user input would be a  bit more complicated >:D

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #6 on: February 06, 2012, 03:23:35 pm »
No, not really. You'd just need the following things from the user:
How many cells have to be around the cell currently being checked to live to the next generation:
1 thru 8
How many cells have to be around the cell currently being checked to become alive:
1 thru 8
How many cells have to be around the cell currently being checked to die:
1 thru 8
« Last Edit: February 06, 2012, 03:24:52 pm by Spyro543 »

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4669
  • Rating: +718/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #7 on: February 06, 2012, 04:09:07 pm »
haha, but if I do the 256-bit method, I can allow for some superior rulesets for mathematical study. However, making a Game of Life is interesting... I may be mistaken, but I believe a very good version of it is on TICalc (I think it was a MirageOS program).

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #8 on: February 06, 2012, 04:26:06 pm »
Also, rule 165 is awesome. D:

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4669
  • Rating: +718/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Cellular Automata (Assembly)
« Reply #9 on: February 06, 2012, 04:29:51 pm »
That was in my top 6 favorites along with 57,99,105,129,161 :D

EDIT: Here is the Game of Life program on TICalc (by Tr1p1ea, too o.O)