fix(engine): EvaluatePlay honors the single-word rule #48
Reference in New Issue
Block a user
Delete Branch "feature/single-word-evaluate-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The move preview (
EvaluatePlay) validated under standard rules, so under the single-word rule it rejected a play whose only flaw was incidental invalid perpendicular cross-words — even thoughSubmitPlayaccepts it. The UI gates submission on the preview, so the move (e.g. КРАН bridging an existing Р on the test contour, game019eba8a-…) could not be made.Fix: pass
g.playOpts()viaValidatePlayOpts, mirroringPlay, so preview legality/score match submission.Robots: unaffected — they search via
GenerateMovesOptsand submit viaPlay(both opts-aware) and never callEvaluatePlay; a regression test asserts this.Verified locally: gofmt/vet/build clean, full backend unit + integration suites green.