boardgame 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 197702a376fd38b428abd963104e7f8c3af5100c
4
- data.tar.gz: c793518ac7b25371d1644f418e0a5f97ed6e308b
3
+ metadata.gz: af315cf0af73fd7f0009301a7ea5453877c4e7c4
4
+ data.tar.gz: 02e84b5ae2ee6e17a5ba486374fccfc5db32636d
5
5
  SHA512:
6
- metadata.gz: d6d9da533d8db374efb0493024cae7f1c15b09c34a09a8d1ac35e67cfa9438dfa10e8a3c4f07f6ee17f765f964058f5fd766098db22f2c8ea282a868dcacd1b3
7
- data.tar.gz: 4c008cb0785f2b70ad7d5efe1f0b797f409cc596cb4309ddb3074400e5de184c19349d6249b69f2b52e8ef6d1df45a1fae1c55b143f3d9c545ba6d6dddfaf846
6
+ metadata.gz: 0f2927c84549396fd9010758b0e6304aa203e7ef62031f1f1f4271a6e71053cadbb961c6d89cc71bfb70f56868d3d84c9813f2967b4619965f8d1e331c0e6f54
7
+ data.tar.gz: 81509af01d09aa89b70e616b61aaaef5908ed9e08eb4db8c64713930fdc9724e345207b8e46779feeae0caa53d1ce9486ba0f052f4ae23ca9ffcdfaf9b5380ca
@@ -11,5 +11,5 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ['lib']
12
12
  s.summary = "Control logic for board and tile based games using Ruby."
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
- s.version = '0.0.3'
14
+ s.version = '0.0.4'
15
15
  end
@@ -49,9 +49,9 @@ class BoardGame::Map
49
49
  private
50
50
 
51
51
  def initialize_map_tiles
52
- @tiles = {}
52
+ @tiles = []
53
53
  0.upto(max_x) do |wd|
54
- @tiles[wd] = {}
54
+ @tiles[wd] = []
55
55
  0.upto(max_y) do |ht|
56
56
  self[wd, ht] = BoardGame::Tile.new({})
57
57
  end
@@ -15,6 +15,6 @@ class BoardGame::Piece
15
15
  end
16
16
 
17
17
  def as_json(*args)
18
- "+"
18
+ {}
19
19
  end
20
20
  end
@@ -7,8 +7,8 @@ class TestMap < Minitest::Test
7
7
  end
8
8
 
9
9
  def test_new
10
- assert map.tiles.is_a?(Hash),
11
- "Expected new maps to have a tiles hash."
10
+ assert map.tiles.is_a?(Array),
11
+ "Expected new maps to have a tiles array."
12
12
  end
13
13
 
14
14
  def test_within
@@ -65,6 +65,7 @@ class TestMap < Minitest::Test
65
65
  def test_validate_height
66
66
  assert_raises RuntimeError do
67
67
  BoardGame::Map.new "1", 1
68
- end
68
+ end
69
69
  end
70
+
70
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boardgame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Carlino