你再看看我们是如何放棋子在棋盘上的。
/// <summary>
/// 初始化棋子在棋盘中的位置
/// </summary>
private void InitChesses()
{
ClsCarriage BCarriage1 = new ClsCarriage("黑");
BCarriage1._currPoint = chessboard[0, 0];
chessboard[0, 0].currChess = BCarriage1;
ClsCarriage BCarriage2 = new ClsCarriage("黑");
BCarriage2._currPoint = chessboard[8, 0];
chessboard[8, 0].currChess = BCarriage2;
ClsHorse BHorse1 = new ClsHorse("黑");
BHorse1._currPoint = chessboard[1, 0];
chessboard[1, 0].currChess = BHorse1;
ClsHorse BHorse2 = new ClsHorse("黑");
BHorse2._currPoint = chessboard[7, 0];
chessboard[7, 0].currChess = BHorse2;
ClsElephant BElephant1 = new ClsElephant("黑");
BElephant1._currPoint = chessboard[2, 0];
chessboard[2, 0].currChess = BElephant1;
ClsElephant BElephant2 = new ClsElephant("黑");
BElephant2._currPoint = chessboard[6, 0];
chessboard[6, 0].currChess = BElephant2;
ClsKavass BKavass1 = new ClsKavass("黑");
BKavass1._currPoint = chessboard[3, 0];
chessboard[3, 0].currChess = BKavass1;
ClsKavass BKavass2 = new ClsKavass("黑");
BKavass2._currPoint = chessboard[5, 0];
chessboard[5, 0].currChess = BKavass2;
ClsKing BKing = new ClsKing("黑");
BKing._currPoint = chessboard[4, 0];
chessboard[4, 0].currChess = BKing;
ClsCannon BCannon1 = new ClsCannon("黑");
BCannon1._currPoint = chessboard[1, 2];
chessboard[1, 2].currChess = BCannon1;
ClsCannon BCannon2 = new ClsCannon("黑");
BCannon2._currPoint = chessboard[7, 2];
chessboard[7, 2].currChess = BCannon2;
ClsSoldier BSoldier1 = new ClsSoldier(0, "黑");
ClsSoldier BSoldier2 = new ClsSoldier(0, "黑");
ClsSoldier BSoldier3 = new ClsSoldier(0, "黑");
ClsSoldier BSoldier4 = new ClsSoldier(0, "黑");
ClsSoldier BSoldier5 = new ClsSoldier(0, "黑");
BSoldier1._currPoint = chessboard[0, 3];
BSoldier2._currPoint = chessboard[2, 3];
BSoldier3._currPoint = chessboard[4, 3];
BSoldier4._currPoint = chessboard[6, 3];
BSoldier5._currPoint = chessboard[8, 3];
chessboard[0, 3].currChess = BSoldier1;
chessboard[2, 3].currChess = BSoldier2;
chessboard[4, 3].currChess = BSoldier3;
chessboard[6, 3].currChess = BSoldier4;
chessboard[8, 3].currChess = BSoldier5;
这样做有什么好处?为什么不采用你写的二维固定数组方式?不要忘了通过摆子可以实现摆残局。。下古谱的。