x86Cow / javaBlackjack

Method uses the same code for multiple branches JAVA-W0411
Anti-pattern
Minor
a year agoa year old
This branch is duplicated elsewhere in this block
195                    // dealer wins
196                } else if(p.getHandAmount(card) > dealer.getHandAmount(card)){
197                    // player wins
198                } else if(p.getHandAmount(card) < dealer.getHandAmount(card)){199                    // dealer wins200                } else {201                    // tie
202                }
203            }