public Book(Game game) { Game = game; BookMoves = new BookMoves(); BookMoves.Game = this.Game; LoadBookMovesDictionary(); }
public Book(Game game, string fileName) { Game = game; BookMoves = new BookMoves(); BookMoves.Game = this.Game; Load(fileName); }
public bool IsDifferentMove(Move m) { Move bm = BookMoves.CurrentMove(); if (m.To == bm.To && m.From == bm.From) { return(false); } return(true); }
public static DataRow NewRow() { DataTable table = BookMoves.GetBookMovesTable(); DataRow row = table.NewRow(); table.Rows.Add(row); table.AcceptChanges(); return(row); }