# cellular_automaton セルラオートマトン風デモ | BASICソース | 変換後CASL2 | 概要 | |:-------------|:------------|:-------------------------| | main.bas | MAIN.cas | メイン部 | | init.bas | INIT.cas | 初期化 | | rand.bas | RAND.cas | 乱数生成 | | check.bas | CHECK.cas | 変化の余地の有無の判定 | | play.bas | PLAY.cas | 状態変化 | 変換 ``` cargo run -- -src main.bas cargo run -- -src init.bas cargo run -- -src rand.bas cargo run -- -src check.bas cargo run -- -src play.bas ``` 実行 - MAIN.casをプログラムのスタートとして実行する 実行例 ``` Seed? (1 - 999) ? 123 Speed? (1 - 30000) ? 30000 ..***....................*.........................*..........*. .**.**..................*.*.......................*.*........*.* ***.***................*...*.....................*...*......*..* ..*.*.**..............*.*.*.*...................*.*.*.*....*.*** .*....***............*.......*.................*.......*..*..*.. *.*..**.**..........*.*.....*.*...............*.*.....*.**.**.*. *..****.***........*...*...*...*.............*...*...*..**.**..* ****..*.*.**......*.*.*.*.*.*.*.*...........*.*.*.*.*.****.***** ...***....***....*...............*.........*..........*..*.*.... ..**.**..**.**..*.*.............*.*.......*.*........*.**...*... .***.******.****...*...........*...*.....*...*......*..***.*.*.. **.*.*....*.*..**.*.*.........*.*.*.*...*.*.*.*....*.***.*....*. .*....*..*...****....*.......*.......*.*.......*..*..*.*..*..*.* *.*..*.**.*.**..**..*.*.....*.*.....*...*.....*.**.**...**.**..* *..**..**...********...*...*...*...*.*.*.*...*..**.***.***.***** **********.**......**.*.*.*.*.*.*.*.......*.*.****.*.*.*.*.*.... .........*.***....***..............*.....*....*..*..........*... ........*..*.**..**.**............*.*...*.*..*.**.*........*.*.. .......*.**..******.***..........*...*.*...**..**..*......*...*. ......*..*****....*.*.**........*.*.*...*.*********.*....*.*.*.* .....*.***...**..*....***......*.....*.*..*.......*..*..*......* ....*..*.**.*****.*..**.**....*.*...*...**.*.....*.**.**.*....** ...*.**..**.*...*..****.***..*...*.*.*.***..*...*..**.**..*..**. ..*..******..*.*.***..*.*.***.*.*......*.***.*.*.****.****.***** .*.***....***....*.***....*.*....*....*..*.*.....*..*.*..*.*.... *..*.**..**.**..*..*.**..*...*..*.*..*.**...*...*.**...**...*... ***..******.****.**..****.*.*.**...**..***.*.*.*..***.****.*.*.. ..****....*.*..*.*****..*.....***.******.*......***.*.*..*....*. .**..**..*...**..*...***.*...**.*.*....*..*....**.*....**.*..*.* *********.*.*****.*.**.*..*.***....*..*.**.*..***..*..***..**..* ........*...*...*...**..**..*.**..*.**..**..***.***.***.******** .......*.*.*.*.*.*.*********..****..*********.*.*.*.*.*.*....... ......*............*.......****..****.......*............*...... .....*.*..........*.*.....**..****..**.....*.*..........*.*..... ....*...*........*...*...******..******...*...*........*...*.... ...*.*.*.*......*.*.*.*.**....****....**.*.*.*.*......*.*.*.*... ..*.......*....*........***..**..**..***........*....*.......*.. .*.*.....*.*..*.*......**.************.**......*.*..*.*.....*.*. *...*...*...**...*....***.*..........*.***....*...**...*...*...* **.*.*.*.*.****.*.*..**.*..*........*..*.**..*.*.****.*.*.*.*.** .*.........*..*....****..**.*......*.**..****....*..*.........*. *.*.......*.**.*..**..*****..*....*..*****..**..*.**.*.......*.* *..*.....*..**..*******...***.*..*.***...*******..**..*.....*..* ***.*...*.*******.....**.**.*..**..*.**.**.....*******.*...*.*** ..*..*.*..*.....**...***.**..******..**.***...**.....*..*.*..*.. .*.**...**.*...****.**.*.*****....*****.*.**.****...*.**...**.*. *..***.***..*.**..*.**...*...**..**...*...**.*..**.*..***.***..* ****.*.*.***..****..***.*.*.********.*.*.***..****..***.*.*.**** ...*.....*.****..****.*.....*......*.....*.****..****.*.....*... ..*.*...*..*..****..*..*...*.*....*.*...*..*..****..*..*...*.*.. .*...*.*.**.***..***.**.*.*...*..*...*.*.**.***..***.**.*.*...*. *.*.*....**.*.****.*.**....*.*.**.*.*....**.*.****.*.**....*.*.* *....*..***...*..*...***..*....**....*..***...*..*...***..*....* **..*.***.**.*.**.*.**.***.*..****..*.***.**.*.**.*.**.***.*..** .***..*.*.**...**...**.*.*..***..***..*.*.**...**...**.*.*..***. **.***....***.****.***....***.****.***....***.****.***....***.** .*.*.**..**.*.*..*.*.**..**.*.*..*.*.**..**.*.*..*.*.**..**.*.*. *....******....**....******....**....******....**....******....* **..**....**..****..**....**..****..**....**..****..**....**..** .******..******..******..******..******..******..******..******. **....****....****....****....****....****....****....****....** .**..**..**..**..**..**..**..**..**..**..**..**..**..**..**..**. **************************************************************** ```