© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
_forsooth

❔ Board Game (Marvel Champions) Gameplay Simulator - deep clone is very inefficient

I have coded a program that simulates X games of Marvel Champions (a living card game by FFG). It works fine, but the way I run it is, I simulate each round 1,000 times (for example) and in a foreach loop, I create a deep copy of the GameBoard each time, so I can make changes to the board and then determine which one has the best state and pick it to then simulate the next round.

While this works, I am using the Force.DeepCloner library and it is just way slower than I would like and wanted to get suggestions on speeding it up. Thanks!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Deep clone variable
C#CC# / help
3y ago
Clone
C#CC# / help
2y ago
clone
C#CC# / help
3y ago