en cs

Nochetodbload tutorial

Nochetodb tutorials

To load positions from a PGN file into the database add the filename as an argument of the nochtodbload.

$ nochetodbload filename.pgn
    

To load games from a PGN file into the database use the --game command line option.

$ nochetodbload --games  carlsen_nakamura_2020.pgn
Loaded game 1: 91/108 fen positions exported in game ID 1001.
Bye.
    
nochetodbeval screenshot

Note: a PGN file can contain more than one game.

In the example above, you can see that the PGN file contained only one game. The game consisted of 108 positions, 91 of them were new (not yet in the database). The game got it's identification number (ID) 1001.

If you load the same game for a second time, you shoud get the same ID. This is because nochetodbload tries to find the same game based on a player names, date of the event, number of moves etc. This is to avoid the game to be counted several times in the opening explorer.

But it could happen that the same game downloaded from a different sources might have, for example, different names of the players (Karpov vs A.Karpov etc.). Then Nochetodbload will not recognise the games as the same.
If you find duplicite games, you can delete them by the --delete <ID> option.

$ nochetodbload --delete 1086
GAME id 1086 was deleted. ('Jan Smejkal' vs 'Anatoly Karpov' at 1973-06-25 with result 0-1 and 144 moves.)
        

This deletes only the game, the positions from the game will stay in the database (positions might be stored with a evaluation).

You can search games in the database by the search2.2.0 command or you can see them in the games explorer2.3.0. They also show you the games ID which you can use to open the game (or delete it).

Nochetodb tutorials