Ejemplo n.º 1
0
        /** This is called when we want to load a game from a temp file
         * to check if a move is valid.
         * @author Thomas Hooper
         * @date April 2019
         */
        public Game LoadThis()
        {
            Game game = Save.LoadGame(@"C:\Users\thoop\source\repos\ChessApp\ChessApp\Saves\TempSaveGame.xml");

            return(game);
        }
Ejemplo n.º 2
0
        /** This is called when we want to save our current game to a temp file
         * so we can serialize it to do things like check if a move is valid.
         * @author Thomas Hooper
         * @date April 2019
         */
        public void SaveThis()
        {
            Save s = new Save();

            s.SaveGame(this, @"C:\Users\thoop\source\repos\ChessApp\ChessApp\Saves\TempSaveGame.xml");
        }