示例#1
0
 private void addPGNMove(List <Movement> move, string comment)
 {
     PGNGame.MoveData md = new PGNGame.MoveData();
     md.Key        = Game.Board.HashCode;
     md.Move       = move[0];
     md.MoveString = Game.DescribeMove(move[0], MoveNotation.StandardAlgebraic /* TODO: change to SAN */);
     md.Comment    = comment;
     PGN.AddMove(md);
 }
示例#2
0
 private void emitLastMove()
 {
     PGNGame.MoveData md = PGN.Moves[PGN.Moves.Count - 1];
     MoveMade(md.Move, md.MoveString, md.Comment);
 }