Skip to content

Bug in isBlackJack() method in BlackJackHand.java #245

@LeonCai1

Description

@LeonCai1

in isBlackJack() method, the code only checks for Aces and face cards. 10 and Ace should also be valid blackjack. I think the return statement should be: return (first.isAce() && second.value()==10)||(first.value()==10&& second.isAce());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions