Giter Club home page Giter Club logo

gol's Introduction

Game of Life

Game of Life implemented on PyQT5. It can run in 3 ways (1.random state, 2. state initialized described in file, 3. process N th generation then dump last state)

random state will be initialized below conditions. (row : 40 ~ 80, col : 80 ~ 120)

Prerequisites

  • Python 3.6

How to run through python

  1. install python package with install.sh

  2. Run with random state python game_of_life.py

  3. Run with declared state file python game_of_life.py plus.txt

  4. Run with declared state file & dump N th generation state python game_of_life.py plus.txt 10

  • dump N th generation state into result.txt file

How to run through exec file

Download & Unzip this[https://drive.google.com/file/d/1Zqjo77ZCLVs9-1J-gwann6NO-1XSP5fS/view?usp=sharing]

  1. Run with random state ./game_of_life

  2. Run with declared state file ./game_of_life plus.txt

  3. Run with declared state file & dump N th generation state ./game_of_life.py plus.txt 10

  • dump N th generation state into result.txt file

State file schema

40 80 # row, col size 
5 # N th initial cells count
19 19 # initial cell #1
20 18 # ...
20 19 # ...
20 20 # ...
21 19 # initial cell N

gol's People

Watchers

kyeongwook.ma 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.