module TicTacToeRZ::GameRules::TieGameRules
Public Class Methods
tie_game?(board)
click to toggle source
# File lib/tic_tac_toe_rz/tictactoeruby.core/game_rules/tie_game_rules.rb, line 8 def self.tie_game?(board) raise Exceptions::NilReferenceError, "board" if board.nil? available_spaces = AvailableSpacesRules.get_available_spaces(board) result = available_spaces.length == 0 && !GameOverRules.game_over?(board) end