Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikeb26
Copy link
Contributor

@mikeb26 mikeb26 commented Jul 18, 2025

Currently if a game is cloned and the child is subsequently mutated, e.g.

child := parent.Clone()
child.PushMove("Nf6", nil)

the parent is incorrectly mutated. This commit fixes the issue by deep copying the moves in Game.Clone(). Additionally we augment the tests to catch this situation.

Currently if a game is cloned and the child is subsequently mutated,
e.g.

child := parent.Clone()
child.PushMove("Nf6", nil)

the parent is incorrectly mutated. This commit fixes the issue by deep
copying the moves in Game.Clone(). Additionally we augment the tests
to catch this situation.
@CorentinGS CorentinGS merged commit d17057a into CorentinGS:main Jul 21, 2025
6 checks 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.

2 participants