src/main/java/com/webcheckers/model/Game.java
/**
     * Checks to see if the game is over, either by resignation or by one player winning
     * @return boolean true if game is over, false if game is not over
     */
Checks to see if the game is over, either by resignation or by one player winning
@return boolean true if game is over, false if game is not over
Checks to see if the game is over either by resignation or by one player winning @return boolean true if game is over false if game is not over
public boolean isGameOver(){
        if (this.isResigned != null) {
            if (this.isGameOver) {
                if (this.isResigned.equals(this.whitePlayer)) {
                    this.winner = redPlayer;
                } else {
                    this.winner = whitePlayer;
                }
                return true;
            }
        }
        else{
            if (redpieces == 0){
                this.winner = this.whitePlayer;
                this.isGameOver = true;
                return true;
            }
            else if (whitepieces == 0){
                this.winner = this.redPlayer;
                this.isGameOver = true;
                return true;
            }
            else{
                return false;
            }
        }
        return false;
    }
public boolean isGameOver ( ) { if ( this . isResigned != null ) { if ( this . isGameOver ) { if ( this . isResigned . equals ( this . whitePlayer ) ) { this . winner = redPlayer ; } else { this . winner = whitePlayer ; } return true ; } } else { if ( redpieces == 0 ) { this . winner = this . whitePlayer ; this . isGameOver = true ; return true ; } else if ( whitepieces == 0 ) { this . winner = this . redPlayer ; this . isGameOver = true ; return true ; } else { return false ; } } return false ; }
Checks to see if the game is over, either by resignation or by one player winning
 @return boolean true if game is over, false if game is not over
Checks to see if the game is over either by resignation or by one player winning @return boolean true if game is over false if game is not over