Giter VIP home page Giter VIP logo

gameoflife's Introduction

GameOfLife

DataStructruesCourse-practice1

数据结构实践1

文件结构

  • GameOfLife
    • utility.h
    • Life.h Life类的定义
    • DoubleBuffer.h
    • Life.cpp
    • DoubleBuffer.cpp
    • GameOfLife.cpp 主程序
    • GameOfLife.vcxproj
    • GameOfLife.vcxproj.filters
  • .gitattributes
  • .gitignore
  • GameOfLife.sln
  • README.md

一个手动输入的样例

*滑翔机生成器输入:

n
1
50
50
y
33
0
0
0
0
0
0
0
0
0
0
1
25
2
23 25
6
13 14 21 22 35 36
6
12 16 21 22 35 36
6
1 2 11 17 21 22
8
1 2 11 15 17 18 23 25
3
11 17 25
2
12 16
2
13 14
-1

文件输入样例:

文件中死细胞用空格' '表示,活细胞请用ASCII码除空格以外的可见字符表示;一行全部死亡请用一个空格表示,行数不得超过51,列数不得超过88。如下:

test.txt:
 xxxxx xx 
xx xx x  x
xx xx   x 
x xx  xx x
 
       xxx
  x xxx  x
xx  xx x  
 xxx  x xx
xxxxxx    
xx  x xx x

读入结果:

□■■■■■□■■□
■■□■■□■□□■
■■□■■□□□■□
■□■■□□■■□■
□□□□□□□□□□
□□□□□□□■■■
□□■□■■■□□■
■■□□■■□■□□
□■■■□□■□■■
■■■■■■□□□□
■■□□■□■■□■

gameoflife's People

Contributors

blueberryoreo avatar

Watchers

 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.