cellularautomata-elixir

时间:2024-05-18 15:20:13
【文件属性】:

文件名称:cellularautomata-elixir

文件大小:4KB

文件格式:ZIP

更新时间:2024-05-18 15:20:13

Elixir

元胞自动机 细胞自动机表示为长生不老药Craft.io。 参考: : # helper to generate N cells with random status: list = CellularAutomata . make_list ( 20 ) # Print status of each cell: Enum . map (list, fn (x) - > CellularAutomata . get_status (x) end ) # => [0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0] # "Evolving" a generation currently involves getting evolution of every cell, # and then setting each


【文件预览】:
cellularautomata-elixir-master
----.gitignore(41B)
----README.md(929B)
----test()
--------cellular_automata_test.exs(134B)
--------test_helper.exs(15B)
----config()
--------config.exs(1KB)
----lib()
--------cellular_automata.ex(3KB)
----mix.exs(686B)

网友评论