ruby_ttt 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ruby_ttt.rb +4 -1
- 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
|