GolGrid

GolGrid 是一个显示由 Thumper 控制的 GridWorld 的 Flutter 小部件。

例如,它是在Flutter组件中实现的康威生命游戏。该组件通过Thumper迭代给定世界的演化步骤。

示例

示例在包含轻量级宇宙飞船在R-五角体下方巡航的世界中迭代步骤。

初始 播放中
shot1 shot2

安装 [flutter],然后

# Confirm you have some devices.
flutter devices

# Get the code
git clone [email protected]:monopole/gol_grid.git
cd gol_grid
flutter test
cd example

对于Chrome(撰写时,需要beta通道的Flutter)

flutter -d chrome run -t lib/web.dart

对于Android,插入您的手机,启用开发者选项并
允许通过USB进行文件传输,然后

# See `flutter devices` for possible arguments
flutter -d pixel run

GitHub

https://github.com/monopole/gol_grid