Skip to content
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

+ Swing Reserve: [fixes #16] #19

Merged
merged 1 commit into from
Mar 3, 2021
Merged

+ Swing Reserve: [fixes #16] #19

merged 1 commit into from
Mar 3, 2021

Conversation

pappde
Copy link
Owner

@pappde pappde commented Mar 3, 2021

  • fixes Player::m_swing_dice[] not being updated when a swing reserve die is used (i.e. goes from !IsUsed() to IsUsed())
  • EXPL: there is a co-dependency between the m_swing_dice[] counts and the Die::IsUsed() state. See BMC_Player::OnDiceParsed(). If m_swing_dice[] is not updated, then the AI doesn't know that it needs to include that swing type in it's list of candidate SetSwing actions.
  • added test input for bug
  • Warnings: fixed one size_t -> INT cast warning
  • Style: fixed several inconsistent if/else bracketing
  • Project:
  • partial work towards splitting up classes into distinct headers/source files
  • headers: setup several
  • source: only setup Stats.cpp
  • player.cpp: renamed to drop the prefix

- fixes Player::m_swing_dice[] not being updated when a swing reserve die is used (i.e. goes from !IsUsed() to IsUsed())
- EXPL: there is a co-dependency between the m_swing_dice[] counts and the Die::IsUsed() state. See BMC_Player::OnDiceParsed(). If m_swing_dice[] is not updated, then the AI doesn't know that it needs to include that swing type in it's list of candidate SetSwing actions.
- added test input for bug
+ Warnings: fixed one size_t -> INT cast warning
+ Style: fixed several inconsistent if/else bracketing
+ Project:
- partial work towards splitting up classes into distinct headers/source files
- headers: setup several
- source: only setup Stats.cpp
- player.cpp: renamed to drop the prefix
@pappde pappde merged commit 3936855 into main Mar 3, 2021
@danlangford danlangford deleted the fix-bug16 branch June 2, 2023 20:18
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.

2 participants