ang_ttt_gem 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ang_ttt_gem/game.rb +5 -1
  2. metadata +1 -1
@@ -49,11 +49,15 @@ class Game
49
49
  end
50
50
 
51
51
  def prepare_display_state
52
- @board.current_state.each_with_index.map do |cell, index|
52
+ gather_board_state.each_with_index.map do |cell, index|
53
53
  cell == " " ? (index + 1).to_s : cell
54
54
  end
55
55
  end
56
56
 
57
+ def gather_board_state
58
+ @board.current_state
59
+ end
60
+
57
61
  def is_over?
58
62
  @scoring.winner?(@board) || @scoring.draw?(@board)
59
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ang_ttt_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: