src/PentagoGame/Logic.java
/**
     * Check if Player won or not
     * @param player is a Player
     * @return true or false
     */
Check if Player won or not
@param player is a Player
@return true or false
Check if Player won or not @param player is a Player @return true or false
public boolean checkWin(Player player)
    {
        if ((checkHoriz(this.block1,this.block2,player.getSign() , true) || checkHoriz(this.block2,this.block1,player.getSign() , false)) || (checkHoriz(this.block3,this.block4,player.getSign() , true) || checkHoriz(this.block4,this.block3,player.getSign() , false)))
        {
            return true;
        }
        if (checkVertical(this.block1,this.block3,player.getSign() , true) || checkVertical(this.block2,this.block4,player.getSign() , true) || checkVertical(this.block4,this.block2,player.getSign() , false) || checkVertical(this.block3,this.block1,player.getSign() , false)  )
        {
            return true;
        }
        if (checkOrib1(this.block1,this.block4,player.getSign() , true) || checkOrib1(this.block4,this.block1,player.getSign() , false))
        {
            return true;
        }
        if (checkOrib2(this.block2,this.block3,player.getSign() , true) || checkOrib2(this.block3,this.block2,player.getSign() , false)  )
        {
            return true;
        }
        return false;
    }
public boolean checkWin ( Player player ) { if ( ( checkHoriz ( this . block1 , this . block2 , player . getSign ( ) , true ) || checkHoriz ( this . block2 , this . block1 , player . getSign ( ) , false ) ) || ( checkHoriz ( this . block3 , this . block4 , player . getSign ( ) , true ) || checkHoriz ( this . block4 , this . block3 , player . getSign ( ) , false ) ) ) { return true ; } if ( checkVertical ( this . block1 , this . block3 , player . getSign ( ) , true ) || checkVertical ( this . block2 , this . block4 , player . getSign ( ) , true ) || checkVertical ( this . block4 , this . block2 , player . getSign ( ) , false ) || checkVertical ( this . block3 , this . block1 , player . getSign ( ) , false ) ) { return true ; } if ( checkOrib1 ( this . block1 , this . block4 , player . getSign ( ) , true ) || checkOrib1 ( this . block4 , this . block1 , player . getSign ( ) , false ) ) { return true ; } if ( checkOrib2 ( this . block2 , this . block3 , player . getSign ( ) , true ) || checkOrib2 ( this . block3 , this . block2 , player . getSign ( ) , false ) ) { return true ; } return false ; }
Check if Player won or not
 @param player is a Player
 @return true or false
Check if Player won or not @param player is a Player @return true or false