Skip to content

Update gameplay logic/performance improvements #10

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

Merged
merged 28 commits into from
Jan 18, 2025
Merged

Conversation

1andDone
Copy link
Owner

@1andDone 1andDone commented Jan 7, 2025

  • Updates gameplay logic
  • Performance improvements
  • Creates a dictionary that estimates the remaining decks, given how many cards are left in the shoe. This differs slightly from the previous implementation which used Python's built-in round function. This function rounded down when the fractional part was 0.5 (i.e. 338 / 52). The current implementation rounds up.
  • Fixes minor bug in shoe.true_count method where 0 was sometimes showing up as negative 0
  • Eliminates the StatsKey dataclass in favor of a tuple
  • Updates the README

@1andDone 1andDone changed the title Added training mode Update gameplay logic/performance improvements Jan 12, 2025
@1andDone 1andDone marked this pull request as ready for review January 18, 2025 20:40
@1andDone 1andDone merged commit b60c223 into master Jan 18, 2025
@1andDone 1andDone deleted the add_training branch January 18, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant