GithubHelp home page GithubHelp logo

gogameoflife's Introduction

GoGameOfLife

一个用go做的生命游戏

one-dimensional 一维的生命游戏

基本结构

  1. []byte的生命空间, 最开始使用的是 []bool作为生命空间. 改为byte的后有很多问题, 需要后续修改.
  2. [][]byte 作为繁衍策略. 修改为 type[string][]type 进行快速查找
    1. 第一维度作为所有可能
    2. 第二维度作为所有状态, 0 是下一状态.
    3. 第二维度只有7个状态位置, 所以一维生命游戏, 每一个生命只可以知道邻近六个生命的状态和自己的状态. 无法知道更多的状态.

一维生命游戏目标

  1. 在只知道6个生命的状态的情况下让若所有生命的状态达成一致

gogameoflife's People

Contributors

zoroqi avatar

Watchers

 avatar  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.