Opening Training

Ask questions regarding general use of DHTML Chess
Post Reply
chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

Opening Training

Post by chessnagar » Fri Mar 03, 2017 2:18 am

Hi Alf,
I am wondering how I can enable opening training for Black? Is there a way?

Thanks

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: Opening Training

Post by alf » Fri Mar 03, 2017 9:45 am

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

chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

Re: Opening Training

Post by chessnagar » Fri Mar 03, 2017 3:36 pm

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.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: Opening Training

Post by alf » Fri Mar 03, 2017 3:50 pm

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.

chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

Re: Opening Training

Post by chessnagar » Fri Mar 03, 2017 4:03 pm

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.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: Opening Training

Post by alf » Fri Mar 03, 2017 4:15 pm

Good idea :)

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

Idochesswork
Posts: 57
Joined: Wed Mar 08, 2017 8:17 am

Re: Opening Training

Post by Idochesswork » Thu Mar 16, 2017 9:58 am

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. ^^

Idochesswork
Posts: 57
Joined: Wed Mar 08, 2017 8:17 am

Re: Opening Training

Post by Idochesswork » Thu Mar 16, 2017 10:22 am

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 *

chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

Re: Opening Training

Post by chessnagar » Thu Mar 16, 2017 1:59 pm

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.

Idochesswork
Posts: 57
Joined: Wed Mar 08, 2017 8:17 am

Re: Opening Training

Post by Idochesswork » Fri Mar 17, 2017 8:13 am

@ 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! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests