_forsooth
_forsooth
CC#
Created by _forsooth on 2/24/2023 in #help
❔ 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!
2 replies