Skip to content

Correct validation of action probabilities.#798

Merged
tturocy merged 1 commit intomasterfrom
issue_788
Mar 11, 2026
Merged

Correct validation of action probabilities.#798
tturocy merged 1 commit intomasterfrom
issue_788

Conversation

@tturocy
Copy link
Copy Markdown
Member

@tturocy tturocy commented Mar 11, 2026

This fixes a problem first observed in the graphical interface (#788), in which validation of chance probabilities was not being handled correctly.

The slightly deeper issue was that validation was not exposed separately.

The solution is to refactor and expose a validation function, so the validation logic is available both in setting the probabilities, but also in validating the dialog.

This also adds a few small UX and wxWidgets modernisations.

Fixes #788.

This fixes a problem first observed in the graphical interface (#788), in which
validation of chance probabilities was not being handled correctly.

The slightly deeper issue was that validation was not exposed separately.

The solution is to refactor and expose a validation function, so the validation logic is available
both in setting the probabilities, but also in validating the dialog.

This also adds a few small UX and wxWidgets modernisations.

Fixes #788.
@tturocy tturocy linked an issue Mar 11, 2026 that may be closed by this pull request
@tturocy tturocy merged commit d1b8dca into master Mar 11, 2026
25 of 26 checks passed
@tturocy tturocy deleted the issue_788 branch March 11, 2026 13:42
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.

[BUG]: Validation of chance probabilities in move editor

1 participant