ruby_ttt 0.2.5 → 0.2.6

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/ruby_ttt.rb +4 -1
  2. metadata +1 -1
data/lib/ruby_ttt.rb CHANGED
@@ -104,7 +104,6 @@ class WebGame < Game
104
104
  end
105
105
 
106
106
  def get_message
107
- return ui.first_move_message(current_player.marker) if board.empty?
108
107
  if board.winner?(current_player.opponent.marker)
109
108
  ui.winning_game_message(current_player.opponent.marker)
110
109
  elsif !board.moves_remaining?
@@ -114,6 +113,10 @@ class WebGame < Game
114
113
  end
115
114
  end
116
115
 
116
+ def get_first_message
117
+ ui.first_move_message(current_player.marker)
118
+ end
119
+
117
120
  def computer_player?(type_one, type_two)
118
121
  ((type_one.downcase) == COMPUTER_PLAYER) || ((type_two.downcase) == COMPUTER_PLAYER)
119
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ttt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: