lifegame 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/bin/demo +1 -1
- data/exe/lifegame +11 -0
- data/lib/lifegame.rb +1 -1
- data/lib/lifegame/{lifegame.rb → game.rb} +1 -1
- data/lib/lifegame/life.rb +4 -1
- data/lib/lifegame/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6210ba3f836642e848b1c8b9cdedc17899c8ae46d0a234cd7a28fecb8d57183
|
4
|
+
data.tar.gz: e199e78a093866842dd94e59f7bb45dccf891833fd8e44f18a7bd8f3e60953dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 451f6ed098b7742205bc804ba6895ea2e13b022dae6aedea88e1023b3ab195359c3920f6641a51a2f00c8b5e4987f2d6b0b1029fccbca85549482e6ad6699952
|
7
|
+
data.tar.gz: 37f6cb69600a57cd8ef71aa84548173d14710bc3eb565ce8f0fc13e407df484e6f10a9806b7a1ce50f2b7cd60c88a33cc465dbe51f09a3cb87674ae82043266d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -29,7 +29,7 @@ $ gem install lifegame
|
|
29
29
|
|
30
30
|
```ruby
|
31
31
|
# 20 x 50
|
32
|
-
game = Lifegame::
|
32
|
+
game = Lifegame::Game.new(20, 50)
|
33
33
|
|
34
34
|
# eg: grader
|
35
35
|
game[2,7].be!; game[2,8].be!; game[2,9].be!; game[1,7].be!; game[0,8].be!
|
@@ -49,6 +49,12 @@ game.sow!(0.2)
|
|
49
49
|
game.start
|
50
50
|
```
|
51
51
|
|
52
|
+
or on your shell
|
53
|
+
|
54
|
+
```sh
|
55
|
+
$ lifegame
|
56
|
+
```
|
57
|
+
|
52
58
|
## License
|
53
59
|
|
54
60
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/bin/demo
CHANGED
data/exe/lifegame
ADDED
data/lib/lifegame.rb
CHANGED
data/lib/lifegame/life.rb
CHANGED
data/lib/lifegame/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lifegame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oieioi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -55,7 +55,8 @@ dependencies:
|
|
55
55
|
description: Conway's Game of Life
|
56
56
|
email:
|
57
57
|
- atsuinatsu.samuifuyu@gmail.com
|
58
|
-
executables:
|
58
|
+
executables:
|
59
|
+
- lifegame
|
59
60
|
extensions: []
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
@@ -72,9 +73,10 @@ files:
|
|
72
73
|
- bin/demo
|
73
74
|
- bin/setup
|
74
75
|
- demo.gif
|
76
|
+
- exe/lifegame
|
75
77
|
- lib/lifegame.rb
|
78
|
+
- lib/lifegame/game.rb
|
76
79
|
- lib/lifegame/life.rb
|
77
|
-
- lib/lifegame/lifegame.rb
|
78
80
|
- lib/lifegame/version.rb
|
79
81
|
- lifegame.gemspec
|
80
82
|
homepage: https://github.com/oieioi/lifegame.rb
|