ruby_ttt 0.2.6 → 0.2.7

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