bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chess-5.02 bug report


From: Dennis Zverev
Subject: chess-5.02 bug report
Date: Wed, 27 Mar 2002 14:28:51 +0300


file "INSTALL"
/****************************************************/
Now it is time to compile the book. Do:

        ln -s ../book/book.pgn
        ./gnuchess
        book create book.pgn                  ->  book add book.pgn
        quit
/****************************************************/ 

file src/pgn.c // error is "do not parse first game from .pgn file
/****************************************************/
   fp = fopen (file, "r");
   if (fp == NULL)
   {
      printf ("Cannot open file %s\n", file);
      return;
   }
                                               /* Read initial whitspaces [Flying] */
                                               while (!feof(fp)) {
                                                  fgets(s,100,fp);
                                                  if (strncmp(s,"\n",1) == 0) break;
                                               }

   BookBuilder(-1,-1, -1, -1);
   newpos = existpos = 0;

   nextgame:
/****************************************************/ 


Denis Zverev
Cybiko Advanced Technologies
OS DEVELOPMENT GROUP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]