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


热门话题
JNI编码,从Java到C   java Gradle:更改为springboot版本导致错误   来自java的SELECT SUM调用的oracle数据类型   java为特定版本的Jenkins版本发送电子邮件通知   java从数据库导入数据以触发启用/禁用复选框(jsp/html)   mysql是由:java引起的。lang.NoClassDefFoundError:无法初始化类javassist。util。代理DefineClassHelper   java Android BufferedWriter:已保存空文件。   javascript如何从脚本访问Java类?   可以在java中向if语句添加or条件吗?   使用concat()时返回字节数组而不是字符串的java JPA本机查询   通过Java+Hibernate代码插入行时sql server获取LockAcquisitionException错误   java如何读取OkHttpClient的证书链   java EAR库的类为WAR成员抛出ClassNotFoundException   ubuntu 12.04无法从java程序执行命令“make clean”   计算矩形的面积、长度和宽度