Hashlife

版本 1.0.1 (10.2 KB) 作者: Thomas
a Matlab version of Gosper's hashlife
3.0 次下载
更新时间 2021/11/8

查看许可证

Implementation of Conway's "game of life" using Gosper's hashlife algorithm.
Run "hashlife" to start with a hardcoded example or load user-made patterns in plain text format. Patterns can be found on: LifeWiki:Pattern pages - LifeWiki (conwaylife.com)
Examples:
and many more.... - copy this in a txt file and load it
Press the "One step ahead" button repeatedly to produce more and more generations.
The algorithm is usually slow at the beginning or when the current cell pattern has few repetitive elements. It gets faster the more results the algorithm could cache from previous calculations and does not have to recalculate.

引用格式

Thomas (2024). Hashlife (https://www.mathworks.com/matlabcentral/fileexchange/101714-hashlife), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

uploaded pattern files as .m files. Rename them into .txt files to upload them.

1.0.0