![]() |
發(fā)布時間: 2015-1-7 18:10
正文摘要:本帖最后由 exv 于 2015-1-7 18:11 編輯 上圖是自己用51單片機在12864液晶上模擬的二位宇宙演化,該宇宙的演化經歷時間為43演化單位。 相關書籍及代碼晚些時候附上。 此模擬方案可用于: 1. 練習編 ... |
附上一個可在89c52+12864液晶上運行的hex文件(51hei5默認配置即可) 效率比之前高約二十倍。 部分修改后的代碼亦在附件中。 底層代碼請各位朋友依據(jù)自己的硬件實現(xiàn)。 ![]() |
太強了.不曉得要好久才能達到這個水平 |
gonggu8181 發(fā)表于 2015-1-13 22:41 真正的大師在書里: John von Neumann(馮諾依曼)有兩個大作為后人稱道: 一個是包括51單片機都在使用的馮諾依曼結構,另一個便是這細胞自動機。 霍金引用了馮諾依曼的一個大作, 而我只是引用了霍金的大作。 民國時有位詩人寫過這樣一首詩: 你站在橋上看風景 看風景人在橋上看你 明月裝飾了你的窗子 你裝飾了別人的夢 咱不過是風景中的風景,夢中的夢,真正的萬有在這一切之外。 |
如果有STM32板子的朋友,可參考我的這個帖子: www點openedv點com/posts/list/0/45175.htm 運算速度會快上很多。 |
大師級的人物,專門注冊來學習! |
本帖最后由 exv 于 2015-1-12 22:50 編輯 霍金的書向來以難懂著稱,為了讓更多朋友能看懂,我稍翻譯下霍金書上的文字: The world Conway envisioned is a square array, like a chessboard, but extending infinitely in all directions. Each square can be in one of two states: alive (shown in green) or dead (shown in black). Each square has eight neighbors: the up, down, left, and right neighbors and four diagonal neighbors. Time in this world is not continuous but moves forward in discrete steps. Given any arrangement of dead and live squares, the number of live neighbors determine what happens next according to the following laws: Conway架構了一個可無限延展的二維棋盤陣列。 每格僅陰陽二態(tài):陽(綠)陰(黑)。 (注:書上的顏色和我提供的程序中的顏色正好相反) 每格8鄰:上下左右及四斜角。 此世界中的時間是離散而非連續(xù)。 若給定陰陽變易法則及始態(tài),則可向時間軸前方推演此世界: 1. A live square with two or three live neighbors survives (survival). 2. A dead square with exactly three live neighbors becomes a live cell (birth). 3. In all other cases a cell dies or remains dead. In the case that a live square has zero or one neighbor, it is said to die of loneliness; if it has more than three neighbors, it is said to die of overcrowding. 1. 若陽格周圍有 2 ~ 3 陽格,其繼為陽。 2. 若陰格周圍恰 3 陽格,此格轉陽。 3. 其他所有情形,陰繼為陰。陽格周陽格少則死于孤寂;反之死于擁擠。 |
謝謝樓主分享,好漂亮。 |
相關代碼請參考我這個帖子: http://www.zg4o1577.cn/bbs/dpj-30318-1.html 霍金的The Grand Design請到這下載: http://vdisk.weibo.com/s/B4iksprsm65q 相關編碼原理請參考第八章 以上資料僅供交流學習之用~ |