예제 #1
0
파일: MainGame.cs 프로젝트: ngocthangh/TTTM
 };                                                                              //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();
 }
예제 #2
0
파일: MainGame.cs 프로젝트: ngocthangh/TTTM
 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();
     }
 }