Skip to content

Fix: Add variant ending to the controller and UI in offline game screen#2721

Merged
veloce merged 3 commits intolichess-org:mainfrom
nav-28:fix-offline-computer-varient-end
Mar 9, 2026
Merged

Fix: Add variant ending to the controller and UI in offline game screen#2721
veloce merged 3 commits intolichess-org:mainfrom
nav-28:fix-offline-computer-varient-end

Conversation

@nav-28
Copy link
Copy Markdown
Collaborator

@nav-28 nav-28 commented Mar 7, 2026

Update the controller and the game screen to check for variant ending condition.

Closes #2713

@nav-28 nav-28 changed the title Fix: Add variant ending to the controller and UI Fix: Add variant ending to the controller and UI in offile game screen Mar 7, 2026
@nav-28 nav-28 changed the title Fix: Add variant ending to the controller and UI in offile game screen Fix: Add variant ending to the controller and UI in offline game screen Mar 7, 2026
@tom-anders
Copy link
Copy Markdown
Collaborator

tom-anders commented Mar 8, 2026

There are some specific texts defined for variant endings, e.g. "raceFinished" :

return context.l10n.raceFinished;

Could we reuse that gameStatusL10n function here?

Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

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

Thanks!

@veloce veloce merged commit 3a682ea into lichess-org:main Mar 9, 2026
1 check 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.

Play against computer has no end game dialog for multiple varients

3 participants