示例#1
0
 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;
 }
示例#2
0
 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;
 }