Feature Request: Collect openings

Discussion of chess software programming and technical issues.

Moderator: Ras

Jonathan003
Posts: 243
Joined: Fri Jul 06, 2018 4:23 pm
Full name: Jonathan Cremers

Feature Request: Collect openings

Post by Jonathan003 »

Chessbase has an interesting option if you load a database and go to report and choose collect openings.
This is what the manual of Chessbase says about this option:
The program generates a new database that contains all the games that start with the same moves (openings variant) gathered together. This gives you a good overview of the openings in the database, just like the openings encyclopedia.
So the function "collect opening" creates merged games for each seperate opening find in the database.
I use this function to further devide my repertoires in small chunks.
Without having to use a seperate game for each seperate variation.
For my Queen's Gambit repertoire for white it gives me 23 seperate sub-repertoires for example.

That make it easyer to study the opening and to memorize the lines, in Chessable for example:
D07 [Queen's Gambit: Chigorin]
D11 [Slav Defence: 3 Nf3 sidelines]
D15 [Slav Defence: 4 Nc3 a6 and 4 Nc3 Bf5]
D16 [Slav Defence: 5 a4: Lines with 5...Bg4 and 5...e6]
D17 [Slav Defence: 5 a4 Bf5: Lines with 6 Ne5]
D20 [Queen's Gambit Accepted: 4 e4]
D21 [Queen's Gambit Accepted: 3 Nf3 sidelines]
D22 [Queen's Gambit Accepted: 3 Nf3 a6 4 e3]
D25 [Queen's Gambit Accepted: 4 e3 : sidelines and 4...Bg4]
D26 [Queen's Gambit Accepted: 4 e3 and 5 Bxc4 c5 sidelines]
D27 [Queen's Gambit Accepted: Classical main line: 7.Bd3]
D30 [Queen's Gambit Declined: Systems without Nc3]
D31 [Queen's Gambit Declined: Semi-Slav without ...Nf6]
D32 [Tarrasch Defence: Sidelines and lines without g3]
D35 [Queen's Gambit Declined: Exchange Variation]
D36 [Queen's Gambit Declined: Exchange Variation: Main line]
D37 [Queen's Gambit Declined: 5 Bf4]
D38 [Queen's Gambit Declined: Ragozin Defence 4 Nc3 Bb4]
D39 [Queen's Gambit Declined: Ragozin Defence with 6 Bg5]
D41 [Queen's Gambit Declined: Semi-Tarrasch]
D43 [Semi-Slav: 5 Bg5 h6]
D44 [Semi-Slav: Botvinnik System and 5...Nbd7]
D46 [Semi-Slav: 5 Nf3 Nbd7 6 Qc2 Black avoids the Meran]
The problem is that the collect openings feature doesn't work perfect in Chessbase.
Some lines are missing and are not to be find in the output database.
I don't need all the variations to be in the output if there are transpostions, just the main lines leading to comman positions. But sometimes variations are missing that can not be reached with an other move order in the output of collect openings of Chessbase.
I don't know exactly how the Collect Openings work in Chessbase.
For my Queen's Gambit repertoire for white, I have 138 seperate opening lines.
If I collect the openings with Chessbase, I get 23 collected openings (merged games with the same opening).
I think it collect opening by following the main lines leading to common positions.
Douse anyone knows software ore a tool that can do this?
Ore maybe someone can make such a tool?
smatovic
Posts: 3224
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Feature Request: Collect openings

Post by smatovic »

I am not sure if this is what you are up to, but there is ChessDB.cn

https://www.chessdb.cn/queryc_en/
https://www.talkchess.com/forum3/viewto ... =2&t=71764

Position Count ( Approx. ) : 28,721,805,250

--
Srdja
Jonathan003
Posts: 243
Joined: Fri Jul 06, 2018 4:23 pm
Full name: Jonathan Cremers

Re: Feature Request: Collect openings

Post by Jonathan003 »

I have attached an example so you can see how the Collect Openings functions works in Chessbase.
https://drive.google.com/file/d/1Aagl5g ... sp=sharing

The ideas is to further divide my repertoires in small sub-repertoires and to give logic names.
This helps to memorize opening lines in Chessable for example.
The problem is that some crucial variations are missing in the output of Collect Opening in Chessbase.
And the opening names given are also not always correct and logic.
So I look for another tool to divide my repertoires in small sub-repertoires.
chesskobra
Posts: 348
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: Feature Request: Collect openings

Post by chesskobra »

I have done something similar (most likely less sophisticated than chessbase). For example, I can take a pgn file and split it according to MCO chapters (or for that matter whatever lists of ECO codes). Again, pgn-extract is what I would use.