Giter Site home page Giter Site logo

game_of_life_python's Introduction

生命游戏(Python 编写)

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

操作:

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

窗口截图:

暂停状态

开始状态

更改大小的状态

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

game_of_life_python's People

Contributors

pikipity avatar

Watchers

James Cloos avatar Ning Zhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.