public void ChessGameFromFEN() { const string fenString = "rnbqkbnr/pppppppp/8/8/8/3P4/PPP1PPPP/RNBQKBNR w KQkq - 0 1"; var i = new Meta(); i["FEN"] = fenString; var g = new ChessGame(i); Assert.AreEqual(fenString, g.State.ToString()); }
public void ChessGameDefaultFEN() { var g = new ChessGame(); Assert.AreEqual(FENParser.DefaultFEN, g.State.ToString()); }
private static void ExportSinglePGN(ChessGame game, TextWriter writer) { var pgn = new PGNParser(); foreach (var s in pgn.Generate(game)) writer.WriteLine(s); writer.WriteLine(""); }
/// <summary> /// Create a new DBGame object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static DBGame CreateDBGame(global::System.Int32 id, ChessGame game) { DBGame dBGame = new DBGame(game); dBGame.ID = id; return dBGame; }
public DBGame(ChessGame game) { TheGame = game; }
public DBGame() { TheGame = new ChessGame(); }