-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve edge cases in test_dptables.py
#93
Comments
I figured out what this issue is. This test case actually showed a bug using the For example, as the code mentioned, number 520, In order to fix this bug, in the later implementation for 9-card evaluation, I discarded using the Therefore, to fix this test case, I think we can just avoid testing the 9-card case (and 8-card case can be dropped too). And the whole block under the TODO comment can be removed safely. |
Thank you for explaining the bug in the def _evaluate_cards(*cards: int) -> int:
...
flush_suit = SUITS[suit_hash] - 1
Simply removing the 8-card and 9-card test cases in I suggest:
Let me know if you have any further questions. |
But we don't use
Here |
Ah, I get your point. I am currently working on this suggestion.
|
In the test_dptables.py file, there is a TODO comment that needs to be addressed.
The comment is located in the loop that generates combinations and updates the table variable, specifically in the case where idx is in
[72, 520, 576]
.Here's the relevant code:
The TODO comment suggests that there might be an issue with the way the
table
is being updated whenidx
is one of the specified values. This needs to be investigated and resolved.Acceptance Criteria:
The text was updated successfully, but these errors were encountered: