lukasmonk / lucaschessR2

Lucas Chess R Version 2
GNU General Public License v3.0
264 stars 40 forks source link

Custom opening not available to engine. #38

Closed keith555 closed 1 year ago

keith555 commented 1 year ago

I'd like to create a custom opening and have an engine play exclusively that opening. I created an opening, gave it a name and a code of X99. I looked in Play>Play against an engine>Initial Moves Opening. The opening I created is not there.

There is also a panel for Activate Book, which seems to imply that I could create an openings book and have the engine use that. I cannot see how to create the openings book. The help document on https://www.devtome.com/ talks about Tools > Openings > Personal Opening Guide which I guess has now become Custom Opening, but what I see in Custom Opening doesn't match with the screenshots or description in that document.

There is also the 2015 document on http://omgchess.blogspot.com/ but that again doesn't match with what I see in the current version, and it seems to be aimed at training an opening rather than having the engine play it.

lukasmonk commented 1 year ago

Is it a single line or a set of lines?

keith555 commented 1 year ago

It's taken from a Chessable course. It's a set of lines with variations and subvariations.

lukasmonk commented 1 year ago

From Custom Openings, you can save to PGN files or to a pgn (editing one by one, Utilities/Save). From Tools/Openings/Polyplot Factory, you can create one, and then import that pgn (pgns). Create a polyglot book. Install this poliglot book (Openings/Install...). Play against any engine, Initial moves, Opponent's book, ....

keith555 commented 1 year ago

It doesn't seem to like the PGN. After choosing import and selecting the PGN file I exported from Custom Openings, it flashes up some kind of pop-up which instantaneously disappears. Nothing is imported.

lukasmonk commented 1 year ago

Contact me directly (lukasmonk at gmail), send me the pgns and I will convert them to polyglot.