C
C#17mo ago
_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!
1 Reply
Accord
Accord17mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.