Spore

From Esolang
Jump to navigation Jump to search

Spore is living cells code (if you want REAL cell as code... WHY!?)

cell called Spore

code has 2 parts CODE and CELLS

the Cells part has JSON

{"cell":{"name":"A","bonds":["B"]},"cell":{"name":"B","bonds":["A"]}}

== structure ==

  • "cell":{
    • "name":" "
    • (optional) "bonds":[ ]
  • }

code part

spore A #get value from spore A
send to A #add A and self value
as A #self and A swap except bonds and value
recept #input store into self value ##like receptor recept something
send #output self value
has bonds to A to 1 #if has bond to A then jump to line 1
has value 1 to 1 #if... you get it
has more value 1 to 1/has less value 1 to 1 #you get it maybe
make value 1 #set to number in this case 1
inhibit A #sub self from A
die #halt if it does not halt and code is over then going to line 1

EXAMPLES

A

{"cell":{"name":"A"}}
make value 65
send
die