예제 #1
0
 public Book(Game game)
 {
     Game           = game;
     BookMoves      = new BookMoves();
     BookMoves.Game = this.Game;
     LoadBookMovesDictionary();
 }
예제 #2
0
 public Book(Game game, string fileName)
 {
     Game           = game;
     BookMoves      = new BookMoves();
     BookMoves.Game = this.Game;
     Load(fileName);
 }
예제 #3
0
        public bool IsDifferentMove(Move m)
        {
            Move bm = BookMoves.CurrentMove();

            if (m.To == bm.To && m.From == bm.From)
            {
                return(false);
            }
            return(true);
        }
예제 #4
0
        public static DataRow NewRow()
        {
            DataTable table = BookMoves.GetBookMovesTable();

            DataRow row = table.NewRow();

            table.Rows.Add(row);

            table.AcceptChanges();

            return(row);
        }