lib/games/tictactoe/game.rb in games_bfox-0.4.0 vs lib/games/tictactoe/game.rb in games_bfox-0.6.0
- old
+ new
@@ -1,6 +1,6 @@
-require_relative '../shared/game'
+require File.join('games', 'shared', 'game')
module TTT
class Game < Shared::Game
def one_time_setup
self.players = players_factory.generate_players
@@ -36,10 +36,10 @@
board.full?
end
def won?
if won_flag
- return true
+ true
end
if board.won?
self.won_flag = true
else