console-tetris 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/console_tetris/block.rb +8 -12
- data/lib/console_tetris/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9eb71d0c195a5122a5ad269884a0245b1cc75a
|
4
|
+
data.tar.gz: 29694cc41d9ffda7c519f5394f0d36cc24c100c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca0b286d94f9e3c0f7199a259a6cd02147bd35de923c489afc67a3a4dda87102991950be4d531468f5db29035200d521116beabee59c093d649eca67f1f4026
|
7
|
+
data.tar.gz: 2f4107813491c2fc639fd21679c0d7c70c2fae2ccd29843144f674b98273409c763b5814e2e84796b9953b4ff3276ea370247619a249a4a68598d5f8fea2230c
|
data/lib/console_tetris/block.rb
CHANGED
@@ -6,26 +6,24 @@ class ConsoleTetris
|
|
6
6
|
case degree
|
7
7
|
when 0
|
8
8
|
[
|
9
|
-
[4, 4, 4
|
10
|
-
[0, 0,
|
9
|
+
[4, 4, 4],
|
10
|
+
[0, 0, 4]
|
11
11
|
]
|
12
12
|
when 90
|
13
13
|
[
|
14
|
-
[0, 4],
|
15
14
|
[0, 4],
|
16
15
|
[0, 4],
|
17
16
|
[4, 4]
|
18
17
|
]
|
19
18
|
when 180
|
20
19
|
[
|
21
|
-
[4, 0, 0
|
22
|
-
[4, 4, 4
|
20
|
+
[4, 0, 0],
|
21
|
+
[4, 4, 4]
|
23
22
|
]
|
24
23
|
when 270
|
25
24
|
[
|
26
25
|
[4, 4],
|
27
26
|
[4, 0],
|
28
|
-
[4, 0],
|
29
27
|
[4, 0]
|
30
28
|
]
|
31
29
|
end
|
@@ -35,24 +33,22 @@ class ConsoleTetris
|
|
35
33
|
case degree
|
36
34
|
when 0
|
37
35
|
[
|
38
|
-
[7, 7, 7
|
39
|
-
[7, 0, 0
|
36
|
+
[7, 7, 7],
|
37
|
+
[7, 0, 0]
|
40
38
|
]
|
41
39
|
when 90
|
42
40
|
[
|
43
41
|
[7, 7],
|
44
42
|
[0, 7],
|
45
|
-
[0, 7],
|
46
43
|
[0, 7]
|
47
44
|
]
|
48
45
|
when 180
|
49
46
|
[
|
50
|
-
[0, 0,
|
51
|
-
[7, 7, 7
|
47
|
+
[0, 0, 7],
|
48
|
+
[7, 7, 7]
|
52
49
|
]
|
53
50
|
when 270
|
54
51
|
[
|
55
|
-
[7, 0],
|
56
52
|
[7, 0],
|
57
53
|
[7, 0],
|
58
54
|
[7, 7]
|