Merged
Conversation
Agent-Logs-Url: https://github.com/fsmosca/Python-Easy-Chess-GUI/sessions/1825c5bc-472f-4fcf-95c4-323effd52f19 Co-authored-by: fsmosca <22366935+fsmosca@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
fsmosca
March 28, 2026 20:25
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The engine spawns a new process and quits after every single move. This change persists the engine process across moves within a game, quitting only on game over or mode exit (Neutral, New Game, Resign, etc.).
Changes
RunEngine.__init__: Accept optionalexisting_engineparameter to reuse a running engine instanceRunEngine.run(): Skippopen_ucispawn andconfigure_enginewhen an existing engine is providedRunEngine.get_engine(): New method — returns the engine instance without quitting, enabling hand-off between movesRunEngine.quit_engine(): Guard againstNone, setself.engine = Noneafter quitplay_game(): Trackpersistent_engineacross the game loop; retrieve viaget_engine()after each move, quit once on loop exitUsage pattern