使用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第三方库


热门话题
java Jackson递归替换匹配字段   JavaGoogleCalendarAPI共享示例   我怎样才能让Eclipse存储。在项目文件夹之外的文件夹中对文件进行分类,我将在其中存储文件。java源文件?   java无法序列化mongodb spark类   java分析的库依赖项。Net/NuGet项目与SonarQube插件   java将安卓日历导出到VCS   java Tomcat 7 war文件部署   java从方法返回泛型类型化对象。获取类<SomeType>而不是SomeType   32位和64位windows服务器上JVM的java最大堆大小   java如何在新的导航抽屉体系结构组件中实现共享应用或评级应用或注销功能   java设置richfaces4树中的默认选定节点   OneToMany的java Hibernate级联问题   java在一个文件中存储常量,并在所有活动中调用它们   java无法从teradata的结果集可靠地写入avro