battle_boats 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/battle_boats/board.rb +6 -1
- data/lib/battle_boats/console_ui.rb +4 -0
- data/lib/battle_boats/engine.rb +2 -0
- data/lib/battle_boats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dadd59a7577daa0ee72910ae66b905d4064eb074
|
4
|
+
data.tar.gz: 190263c08aec175df8720e7711d4bf9f842ee9c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45d24201004142d06df0644891af60f4e38706fdd45b4d991265a9bdc05632beb1302549e7e023c5e4bea87e844dbb8bd937cff0cd96d3c65e6d9a97bbe6d6d4
|
7
|
+
data.tar.gz: 7b04df2c019d2b82162faa68d4d51270226ebb9e823aad9bbaf94e98574cb7d8ffe2e8313dd4c0068c99978deb882dc6de055f126a2e9ec50ed3e7a6f839a646
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/battle_boats/board.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "battle_boats/cell"
|
2
|
+
require "battle_boats/fleet"
|
2
3
|
|
3
4
|
module BattleBoats
|
4
5
|
class Board
|
@@ -30,7 +31,11 @@ module BattleBoats
|
|
30
31
|
end
|
31
32
|
|
32
33
|
def game_over?
|
33
|
-
|
34
|
+
if BattleBoats::FLEET.all?(&:sunk?)
|
35
|
+
true
|
36
|
+
else
|
37
|
+
false
|
38
|
+
end
|
34
39
|
end
|
35
40
|
|
36
41
|
def cell_at(coordinate:)
|
data/lib/battle_boats/engine.rb
CHANGED
data/lib/battle_boats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: battle_boats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Countz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|