Page 1 of 1

Opening Training

Posted: Fri Mar 03, 2017 2:18 am
by chessnagar
Hi Alf,
I am wondering how I can enable opening training for Black? Is there a way?

Thanks

Re: Opening Training

Posted: Fri Mar 03, 2017 9:45 am
by alf
Hmm. Good question :)

It's based on the tactic trainer, so the result is what's decided which color you play. If the result is 0-1 [Result "0-1"], you will play black.

But for the opening trainer, you will probably want something random. I have to think about that one. Do you have any suggestions?

---
Alf

Re: Opening Training

Posted: Fri Mar 03, 2017 3:36 pm
by chessnagar
In my opinion, the user should be given to train the opening as black or white.

When I checked the "eco" file there is no "Result" pgn tag in the file. So I am assuming that you are assigning Result 1-0 and hence ECO training is by default White perspective. So when the user selects to train as Black then probably you can manipulate the result to 0-1 and then it should be from Blacks perspective (but white has to make the first move automatically). I am not sure the memory impact when the user keeps switching between white/black options frequently.

Re: Opening Training

Posted: Fri Mar 03, 2017 3:50 pm
by alf
I will find a solution for the opening trainer.

* I'm also in the process of creating some new puzzles, example: find hanging pieces, pinned pieces etc. I think it could be nice feature.

Re: Opening Training

Posted: Fri Mar 03, 2017 4:03 pm
by chessnagar
Probably we can simply remove the option to pick the side and let the user play both the roles so he can do it from the both sides. This way user can train both as black and white and he can switch the board while playing the roles. This way memory manipulation is not needed only we have to allow human vs human (or self vs self) rather than computer vs human / human vs computer.

Re: Opening Training

Posted: Fri Mar 03, 2017 4:15 pm
by alf
Good idea :)

That's probably how I will implement it. I just need to take into consideration openings with only 1 move.

Re: Opening Training

Posted: Thu Mar 16, 2017 9:58 am
by Idochesswork
I think there is one more simple way: Try the pgn with custom board, just as the normal tactics. The fen code has already show White 1st move. And now it must be Black turn. For example:

rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1

Here, White has move 1.e4. I think that it would work. And that is Black turn. For the readers, they will easily recognize what first move have White make, won't they?

Let me try, I will report it later. ^^

Re: Opening Training

Posted: Thu Mar 16, 2017 10:22 am
by Idochesswork
Work for me. Here is the test link:

http://test.chess.edu.vn/luyen-tap-khai ... eview=true

The pgn I used in the database is like this: (sorry. cannot attach file, so I paste it here. You can copy/paste to the text editor and save as pgn, upload and try it)

[Event "?"]
[Site "?"]
[Date "2017.03.16"]
[Round "?"]
[White "Main line"]
[Black "?"]
[Result "*"]
[SetUp "1"]
[FEN "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"]
[PlyCount "17"]

1... d5 2. exd5 Qxd5 3. Nc3 Qa5 4. d4 Nf6 5. Nf3 Bf5 6. Bc4 e6 7. Bd2 c6 8. Nd5
Qd8 9. Nxf6+ gxf6 *

[Event "?"]
[Site "?"]
[Date "2017.03.16"]
[Round "?"]
[White "Scandinavinan "]
[Black "variation 1"]
[Result "*"]
[SetUp "1"]
[FEN "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"]
[PlyCount "9"]

1... d5 2. exd5 Qxd5 3. Nc3 Qa5 4. d4 Nf6 5. Bb5+ c6 *

[Event "?"]
[Site "?"]
[Date "2017.03.16"]
[Round "?"]
[White "Scandianavian defense"]
[Black "varies on move 5"]
[Result "*"]
[SetUp "1"]
[FEN "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"]
[PlyCount "17"]

1... d5 2. exd5 Qxd5 3. Nc3 Qa5 4. d4 Nf6 5. Bc4 Bg4 6. f3 Bf5 7. Nge2 e6 8.
Bd2 Qb6 9. Na4 Qc6 *

[Event "?"]
[Site "?"]
[Date "2017.03.16"]
[Round "?"]
[White "Scandinavian defense"]
[Black "varies on move 5b"]
[Result "*"]
[SetUp "1"]
[FEN "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"]
[PlyCount "17"]

1... d5 2. exd5 Qxd5 3. Nc3 Qa5 4. d4 Nf6 5. Bd2 Bg4 6. f3 Bh5 7. Bc4 Qb6 8.
Nge2 e6 9. a4 a5 *

Re: Opening Training

Posted: Thu Mar 16, 2017 1:59 pm
by chessnagar
Idochesswork: Your idea is good if we have to separate databases (one for white and one for black). The idea is to use the same database and provide a way to training as black or white.

Re: Opening Training

Posted: Fri Mar 17, 2017 8:13 am
by Idochesswork
@ chessnagar: Ah yes, you're right. Because I think that it would be too broad to put a lot of openings to train in the same post. So we must either ways compose the database before using :-p.
And by the way, your site look well managed! - Congratulate! :)