Skip to content

Api#113

Merged
nova-rey merged 141 commits intomainfrom
API
Nov 19, 2025
Merged

Api#113
nova-rey merged 141 commits intomainfrom
API

Conversation

@nova-rey
Copy link
Owner

No description provided.

…workflow; add minimal ruff/mypy config and report hygiene
…t mypy) + stable tool config and report hygiene
Added new files and directories to .gitignore to exclude them from version control.
Add configuration for CrapsSim project including metadata and dependencies.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +365 to +374
def _construct_bet(
bet_type: type[Bet],
*,
number: Optional[int],
amount: float,
) -> Bet:
try:
if number is None:
return bet_type(amount)
return bet_type(number, amount)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve odds flags when reducing bet amounts

set_bet_amount rebuilds the bet via _construct_bet, but _construct_bet only passes the number and amount (return bet_type(number, amount)). For Odds bets this drops the existing always_working flag, so a bettor who previously called set_odds_working will silently revert to non-working odds whenever they reduce the amount. After an odds bet is marked as working, calling the reduce API on it will reset it to the default come-out behaviour and the player cannot detect that this happened. _construct_bet needs to copy additional attributes from the removed bet when re-creating it.

Useful? React with 👍 / 👎.

Updated CHANGELOG to reflect changes in version 0.4.0, including new bets, strategies, and fixes.
@nova-rey nova-rey merged commit 9a72243 into main Nov 19, 2025
2 of 5 checks passed
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