Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pikipity/Game_of_life_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

生命游戏(Python 编写)

用 Pygame 编写的生命游戏,可以改变大小并能产生随机游戏。

操作:

  • b键:开始游戏
  • s键:暂停游戏
  • c键:改变大小(在暂停游戏的情况下,输入格式:列数(每一行多少个细胞),行数(每一列多少个细胞),回车键确定)

窗口截图:

暂停状态

开始状态

更改大小的状态

尽管测试的时候卡顿严重,实际运行的时候发现,即使大小上升到(100,100),速度也还是可以接受的,反而是大小为(50,50)的时候速度过快,FPS还可以比30更低一些。

About

The Game of life using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /