Author: Daniel Shawul
Date: 02:01:36 05/13/04
Go up one level in this thread
On May 13, 2004 at 04:26:11, Uri Blass wrote: I am sure there is a programme which translates PGN files into clean simple algebric notation (e2e4 type). So i think it is enough for you to extend a bit on what you already have. best daniel >I understand that many free programs read pgn in order to generate their book. >I did not start the task of writing a program to read pgn but the task of >getting information about the next move is the same task and I do not like >to work only to do the same thing that other programmers did. > >My question is if there is a free program with source code that can help here. > > >My idea is that there can be a free program with source that simply read the pgn >and use some simple functions that are easy to program assuming that you already >have functions to generate list of legal moves and to make moves. > >The free program does not need to know the chess rules and it can use the chess >program. > >I think that having the list of legal moves as an array of strings including the >name of the moving piece if it is not a pawn is a relatively simple task to >reading pgn. >The array can include in the opening position 20 strings: >"a2a3 a2a4 b2b3 b2b4...Nb1a3 Nb1c3 Ng1f3 Ng1h3" > > >Now the free function with source code that read pgn should get pgn and >translate it to a file with hash key,move(full notation),num_game information >and a different file that have information about every game. > >The free function does not need to know chess and can simply use functions >to get the hash key or get the list of possible moves or make move from the >chess program. > >It will also detect cases when there are illegal moves in the pgn or moves that >are not clear like Nd2 when it is not clear if it is Nbd2 or Nfd2. > >Most programmers may get the right to use it in the same way that they can get >the right to use the nalimov tablebases. > >Uri
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.