public CheckerState(CheckerState other) { AllPieces = other.AllPieces; CheckerPieceMap = new Dictionary <int, CheckerPiece>(); foreach (KeyValuePair <int, CheckerPiece> entry in other.CheckerPieceMap) { CheckerPieceMap[entry.Key] = entry.Value; } MustJump = new[] { other.MustJump[0], other.MustJump[1] }; SelectedPiece = null; JumpMade = other.JumpMade; AllPieces = other.AllPieces; }
public CheckerState(CheckerState other) { AllPieces = other.AllPieces; CheckerPieceMap = new Dictionary<int, CheckerPiece>(); foreach (KeyValuePair<int, CheckerPiece> entry in other.CheckerPieceMap) { CheckerPieceMap[entry.Key] = entry.Value; } MustJump = new[] { other.MustJump[0], other.MustJump[1] }; SelectedPiece = null; JumpMade = other.JumpMade; AllPieces = other.AllPieces; }