Yes, you’re correct.
Okay new problem:
All my tests are good, except the 20. Which have for threshold: 10
I have these data:
* threshold: 10
* input: 9J4T7A55Q.Something just touched my leg!.9T75.RainMan.Cute dealer.Is that Penn or Teller?.TATA.A.I'm so smart.366K9.362436
* higher than threshold: J
* higher than threshold: T
* higher than threshold: Q
* higher than threshold: T
* higher than threshold: T
* higher than threshold: T
* higher than threshold: K
* map of valid cards drawn:
* 2: 1
* 6: 4
* 3: 3
* 5: 3
* A: 4
* 7: 2
* 4: 2
* 9: 3
* analyzedCards: 29
* nbCardsRemainingToDraw: 23
* Periods distracted: 5
* unvalidCardsDrawn: 7 good cards but above threshold
* baseValidCardPossible: 32
* validCardsDrawn: 22
* stayingValidCardPossible: 10
* 43%
I recounted the displayed data by hand, and it seems correct to me, would it be possible to give me a clue?
Your calculation of 10 is problematic. There are 14 cards which are valid and undrawn:
2: 3
3: 1
4: 2
5: 1
7: 2
8: 4
9: 1
By the way, please always quote the full test/validator name when you are asking, for easier reference. For example, this test is “Test 20 Anything but 10”.
Thank you! I validated the test! ![]()
hhhhelp… I need a hint urgently( How should I calculate the percentage chance…?
number of cards whose value will be less than bustThreshold / number of remaining cards x 100%
Hey, I think the problem incorrectly says “less than” when it really means “less or equal to”, when referring to the bust threshold. Perhaps.
Which cases make you think so? Can you give us an example and show your calculations and answers?
Hi everyone, I need help ![]()
I just cant wrap my head around, why my code might be wrong. In some cases, I apparently count 1 card too much. But I just cant find which one. For example in Test#3 I count 40 cards (so 12 remain). But that´s wrong I guess? Couldn´t find any other solution to the problem. Can anyone help?
This is my search:
valid_cards = r"^[A23456789TJQK]+$"
observation = stream_of_consciousness.split(".")
observed_cards = [string for card in observation for string in re.findall(valid_cards, card)] #distractions are getting deleted
@5DN1L Can you help?
If modpinging isn´t allowed, let me know and I apologize. I just don´t know how all of this works and the discussion seems dead already so I figured I have to ping someone to get an answer (you were already active in the discussion and you are actually still active on this platform). Sorry again if I shouldn´t ping a mod
That’s not wrong. It looks like the code you provided extracts the cards correctly. Try looking for the bug somewhere else.
Also, no worries about pinging me; it’s fine ![]()
Thanks for the reply, it really helped
Only problem is, is that this is the second puzzle in which I have a bug that I can´t find ;-;
But at least I know where NOT to look now, thanks ![]()
Edit: I finally found it OMG, it was a mistake in my math. I thought I should round up everytime, not mathematically. That cost me about 1,5 hours of my time and a ton of debugging… Never give up I guess
You really helped me