Skip to content

Commit

Permalink
Temporarily disabled broke-ass checkmate detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Radcliffe committed Oct 29, 2010
1 parent 62f5e0b commit da116b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/move_controller.rb
Expand Up @@ -10,9 +10,10 @@ def create
match.moves << @move = Move.new( params[:move] )
flash[:error] = @move.errors.full_messages unless @move.id

[:black, :white].each do |side|
match.checkmate_by(side.opposite) if match.reload.board.in_checkmate?(side)
end
# not working ! see checks in prod matches 75/78
# [:black, :white].each do |side|
# match.checkmate_by(side.opposite) if match.reload.board.in_checkmate?(side)
# end
ChessNotifier.deliver_player_moved(request.opponent, request.player, @move)


Expand Down

0 comments on commit da116b0

Please sign in to comment.