}; //Mảng điểm tấn công //public long[] AScore = new long[5] { 0, 3, 24, 243, 2197 }; //public long[] Attack_Score = new long[5] { 0, 1, 9, 81, 729 }; public void goAChess(ChessCell chess, Graphics g) { chess.Draw(g); _ChessArray[chess.RowIdx, chess.ColIdx].BelongTo = chess.BelongTo; _stkGoneChess.Push(chess); changeTurn(); }
public void redo(Graphics g) { if (_stkUndoChess.Count > 0) { ChessCell redoCell = _stkUndoChess.Pop(); _stkGoneChess.Push(redoCell); _ChessArray[redoCell.RowIdx, redoCell.ColIdx].BelongTo = redoCell.BelongTo; redoCell.Draw(g); changeTurn(); } }