使用Tkinter的Conway生活游戏的纯Python实现。

yacgol的Python项目详细描述


又一个康威的人生游戏

Build StatusCoverage Status

yacgol是使用TkinterConway's Game of Life的纯python实现。

Demo

The game is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves, or, for advanced players, by creating patterns with particular properties.

At each step in time, the following transitions occur:

  1. Any live cell with fewer than two live neighbors dies, as if by under population.
  2. Any live cell with two or three live neighbors lives on to the next generation.
  3. Any live cell with more than three live neighbors dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
  • Conway's Game of Life Wikipedia page

安装

$ pip install yacgol
$ yacgol -h

使用

大多数与yacgol的交互将在tkinter ui中进行。所以 启动yacgol并检查它!

开发

首先,安装开发包:

$ pip install -r requirements-dev.txt

测试

$ nose2

起毛

$ flake8

覆盖范围

$ nose2 --with-coverage

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
junit cucumber为什么会找到“runTest.java”来运行测试?   在Eclipse中找不到java KeyPairGenerator   java NotSerializableException即使在实现Serializable之后   noclassdeffounderror(java字符串连接)为什么会出现这种异常?   java Guice:将接口绑定到由动态代理创建的实例   使用Spring数据neo4j创建空间索引时发生java错误   java对于需要在50多个excel文件上运行并且每个文件平均包含25k行的项目,最佳的方法是什么   javaNIO中的java缓冲区写入/发送消息问题   如何在Java/eclipse中添加不调用super()的警告   JavaSpring:mvcUrl映射错误的id   java应该在getInstance或构造函数中使用Init方法吗?   安卓中的java空指针异常错误   java Jsoup不能完全获取原始html代码