How to make a janggi book?

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

How to make a janggi book?

Postby dkssud » 10 Dec 2020, 10:13

I am curious how to make janggi's book through winboard.
I used "save games to book" through pgn made by winboard, but book-sym.bin becomes 0kb.
In other words, it cannot be produced.
Is it a method to recognize by arbitrarily modifying pgn?
I am curious about an easy production guide for making a book.
Posts: 1
Joined: 10 Dec 2020, 09:58

Re: How to make a janggi book?

Postby janggi-korea » 10 Dec 2020, 11:14

The janggi book is not yet play. There are some bugs. So I have to do a few more tests with Muller. But I don't have time recently.
Posts: 114
Joined: 18 Aug 2020, 12:12

Re: How to make a janggi book?

Postby H.G.Muller » 13 Jan 2021, 22:59

I believe this should work now. Be sure to use the latest version of WinBoard, at .

The size 0 problem was because WinBoard did not automatically close the book file after writing, so that the correct size only appeared after WinBoard was closed. (Before that the data was probably still buffered in WinBoard, and not yet in the file.) I fixed that now, and Save Games to Book should now produce a complete book even before you close WinBoard.

The procedure now is as follows:

* Be sure that all the games in the PGN file specify a result; WinBoard will not include moves of games without a result in the book, because it derives the 'weight' of the move from the results that were achieved with them.
* Be sure to use a PGN file where the FENs of the start positions use E and H for Elephant and Horse, not B and N.
* Start WinBoard in the mode 'Just view or edit games'.
* Select Janggi from the File -> New Variant menu
* Write the filename of the book you want to create in the Engine -> Common Settings dialog, to the right of 'Use book:'. Use a complete pathname, like C:\WinBoard\WinBoard\JG_book-sym.bin to make sure you know where the book is going to appear. An existing book of that name would be overwritten!
* Use File -> Load Game to load the PGN file with the games that should go into the book
* Hit File -> Save Games to Book

This should create a symmetrized book (because the filename you gave ends in '-sym'; the statistics of mirror-image positions will be combined, and only one of those will go into the book. If you probe for the other, WinBoard will use the reflected version of the one in the book.

In principle this procedure is cumulative: as long as you do not exit WinBoard the book it has saved still resides in its memory, and when you load a new PGN file and hit again Save Games as Book, you get a book made from the games in both files.
User avatar
Posts: 3340
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 14 guests