You may send me your code in private message and I’ll take a look.
Hi! Can i somehow get access to the after submit validation inputs? 03, 05 and 08 are failing on my code and i can’t figure out why
If you want, you may send me your code in private message and I’ll try to create some custom cases for your debugging.
Edit:
It turns out that the main issues are:
(1) not handling properly the situation where the bank or the player is dealt two cards of the same rank, and
(2) not handling properly the situation where the bank and the player have the same particular score.
No additional custom cases are required.
I’m also having issues with test 5 & 6.
In test 5, bank hand is [6 9 8] (23), player hand is [5 7] (12); expected outcome: Player
As the subject says: “If a hand exceeds 21 points, the opposing hand wins”, nothing wrong so far.
In test 6: bank = [A J 10) (31), player = [4 6 5] (15), same scenario but this time bank is expected to win.
This is not the blackjack case mentioned earlier here since we don’t have real cards order and it seems we can’t draw anymore after Blackjack.
In both cases, the bank has over 21 and player has under 21, only difference is player having 1 extra card is hand, to pass the local tests I checked if player could draw another card and still be under 21, but of course it doesn’t pass real tests.
I don’t know blackjack, not saying the test is wrong but explanations don’t seem to match expected outputs.
Problem solved it seems, I evaluated Aces last.
From what the subject says, Ace is 1 or 11, depending if we’re exceeding 21, it doesn’t mention the fact that Ace could be first evaluated to 11, then 1 later to stay under 21 with later cards. That’s how I understand the rules from what’s passing the tests, don’t know If i’m wrong or if it’s just a consequence of not having real cards order, I think the instructions should be more clear about that.
I mean, if in real games the value is fixed when drawn or not, since the instructions say we don’t have real draw order it should specify how it impacts Aces.
Also, just got level 20 ![]()