Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (20 loc) · 633 Bytes

readme.md

File metadata and controls

20 lines (20 loc) · 633 Bytes

nature-sim

这是一个模拟生态圈的模型,目前使用python构建

还正在构造

类定义

很不全,目前只有生产者(producer)下的树(tree)和藻类(alga)

竞争

在生产者上是高度(height)越高优先得到阳光,阳光不足就会死去,否则会繁殖

繁殖

繁殖时会有变异

变异

目前简单的random

目前

算法很不真实,生物种类太少,较为抽象

接下来

完善算法、结构,准备可视化。 欢迎有兴趣的人提交PR!希望它有很好的扩展性

结构

basic_genes.py是类的定义 sim.py是模拟的主程序