battle_boats 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/bin/battle_boats +5 -0
- data/lib/battle_boats/console_ui.rb +3 -1
- data/lib/battle_boats/environment.rb +3 -0
- data/lib/battle_boats/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a2ea56e68cade1efeca6c47d3e9e7f8fb8c7155
|
4
|
+
data.tar.gz: 4d2b2ebc69e8cdbe6ae0438edf7b3df2d35b8843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbeb648094a0bc1fc56861eab3f5833af25239079b484f000801f40e73979b8f3024ce26cdb19554ff3be1b17f9c03c86f5d5bd8bd66fd84da5ad7f832d3cd75
|
7
|
+
data.tar.gz: 3618838dd7400e8c03853491fe5af3bbf22df9f21fa8615abd9f937ba003af3e7db2f6fcddf8490bdff3a298363dc691bd2efdd174e6ba920ee8ebc626fdd066
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/bin/battle_boats
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative "coordinate"
|
2
2
|
require_relative "board_formatter"
|
3
|
+
require_relative "environment"
|
3
4
|
|
4
5
|
module BattleBoats
|
5
6
|
class ConsoleUI
|
@@ -16,7 +17,8 @@ module BattleBoats
|
|
16
17
|
end
|
17
18
|
|
18
19
|
def display_board(board)
|
19
|
-
|
20
|
+
hide_ships = !BattleBoats::DEVELOPMENT
|
21
|
+
output.puts board_formatter.format_board(board, hide_ships: hide_ships)
|
20
22
|
end
|
21
23
|
|
22
24
|
def display_ally_board(board)
|
data/lib/battle_boats/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: battle_boats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Countz
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/battle_boats/console_ui.rb
|
114
114
|
- lib/battle_boats/coordinate.rb
|
115
115
|
- lib/battle_boats/engine.rb
|
116
|
+
- lib/battle_boats/environment.rb
|
116
117
|
- lib/battle_boats/fleet.rb
|
117
118
|
- lib/battle_boats/null_ship.rb
|
118
119
|
- lib/battle_boats/ship.rb
|