Skip to content

Commit

Permalink
#97 Ensure that multiple comments are concatenated to one comment only.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliebelt committed Jun 10, 2018
1 parent 618b10e commit 322aefd
Show file tree
Hide file tree
Showing 3 changed files with 429 additions and 362 deletions.
4 changes: 2 additions & 2 deletions examples/modes/view/shapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
cfg = {width: '400px', pgn: "1. e4 { [%csl Yf4,Gg5,Gd4,Rc4,Bb4,Ya4][%cal Gg1f3,Rf1c4,Gh2h4,Rg2g4,Bf2f4,Ye2e4] } 1... e5 { [%cal Gh2h4] } 2. Nf3 { [%cal Rf3e5] } 2... Nc6 { [%cal Yc6e5] } 3. d4 { [%cal Bd4e5] } 3... exd4 { [%csl Ge5] } 4. Nxd4 { [%csl Rc6] } 4... Nxd4 { [%csl Yd4] } 5. Qxd4 { [%csl Bd4] } "};
pgnView("board",cfg);
// The following is not working, but that below. Look at the differences!
//cfg = {width: '400px', pgn: "1. c3 e5 2. Qc2 d5 3. f4 { a gambit! f4! this move is to break black's center and go for some attacking chess } { [%csl Gf4] } 3... exf4 { black took the pawn } { [%csl Gf4] } 4. d4 { [%csl Gf4][%cal Gc1f4] } 4... g5 { black tries to hold on the pawn, but this can lead to some troble for black } { [%csl Gf4][%cal Gg5f4] } (4... Qh4+ { Make sure to read this line. } 5. Kd1 Nf6 6. Nf3 Qg4 7. Ne5 { [%csl Gg4][%cal Ge5g4] } 7... Qg5 8. g3 { [%csl Gf4][%cal Gc1g5,Gg3f4] } 8... Ne4 9. Bxf4 Qg6 10. Ke1 { Black has some stuff, but this is good for white in my opinion. }) (4... Nf6 { black does not care about the pawn so TAKE IT! } 5. Bxf4 Bd6 6. Bxd6 Qxd6 7. Nf3 O-O 8. Nbd2 Nc6 9. O-O-O { just play on the black kingside and attack } { [%cal Gg2g4,Gh2h5,Gf3g5,Gd2f3,Gf1e2] }) 5. h4 { white strikes } { [%csl Gh4][%cal Gh1h4] } 5... f6 6. hxg5 fxg5 { got an open file for the rook } 7. Rxh7 { This is just great and winning! If you are a kings gambit player, you may like a line similar to this. Just beware of 4. Qh4. } { [%csl Gh7][%cal Gc2h7] } 7... Nf6 { Nf6 black thinks he is winning what a fool } (7... Qf6 8. Rxh8!? Bf5 9. Qa4+ Bd7 10. Qb3 Qxh8 11. Qxb7 Bc6 12. Qc8+ Kf7 13. Nf3! { This is just winning } { [%csl Ge5,Gc6,Gg5][%cal Gf3e5,Ge5c6] }) 8. Qg6# { mate this line is good for those who like gambits and attacking chess } { [%cal Gg6e8,Gh7d7] } (8. Rxh8 { BAD MOVE } { Although is really makes no difference :) }) "};
cfg = {width: '400px', pgn: "1. c3 e5 2. Qc2 d5 3. f4 { a gambit! f4! this move is to break black's center and go for some attacking chess } { [%csl Gf4] } 3... exf4 { black took the pawn } { [%csl Gf4] } 4. d4 { [%csl Gf4][%cal Gc1f4] } 4... g5 { black tries to hold on the pawn, but this can lead to some troble for black } { [%csl Gf4][%cal Gg5f4] } 5. h4 { white strikes } { [%csl Gh4][%cal Gh1h4] } 5... f6 6. hxg5 fxg5 { got an open file for the rook } 7. Rxh7 { This is just great and winning! If you are a kings gambit player, you may like a line similar to this. Just beware of 4. Qh4. } { [%csl Gh7][%cal Gc2h7] } 7... Nf6 { Nf6 black thinks he is winning what a fool } 8. Qg6# { mate this line is good for those who like gambits and attacking chess } { [%cal Gg6e8,Gh7d7] }"};
cfg = {width: '400px', pgn: "1. c3 e5 2. Qc2 d5 3. f4 { a gambit! f4! this move is to break black's center and go for some attacking chess } { [%csl Gf4] } 3... exf4 { black took the pawn } { [%csl Gf4] } 4. d4 { [%csl Gf4][%cal Gc1f4] } 4... g5 { black tries to hold on the pawn, but this can lead to some troble for black } { [%csl Gf4][%cal Gg5f4] } (4... Qh4+ { Make sure to read this line. } 5. Kd1 Nf6 6. Nf3 Qg4 7. Ne5 { [%csl Gg4][%cal Ge5g4] } 7... Qg5 8. g3 { [%csl Gf4][%cal Gc1g5,Gg3f4] } 8... Ne4 9. Bxf4 Qg6 10. Ke1 { Black has some stuff, but this is good for white in my opinion. }) (4... Nf6 { black does not care about the pawn so TAKE IT! } 5. Bxf4 Bd6 6. Bxd6 Qxd6 7. Nf3 O-O 8. Nbd2 Nc6 9. O-O-O { just play on the black kingside and attack } { [%cal Gg2g4,Gh2h5,Gf3g5,Gd2f3,Gf1e2] }) 5. h4 { white strikes } { [%csl Gh4][%cal Gh1h4] } 5... f6 6. hxg5 fxg5 { got an open file for the rook } 7. Rxh7 { This is just great and winning! If you are a kings gambit player, you may like a line similar to this. Just beware of 4. Qh4. } { [%csl Gh7][%cal Gc2h7] } 7... Nf6 { Nf6 black thinks he is winning what a fool } (7... Qf6 8. Rxh8!? Bf5 9. Qa4+ Bd7 10. Qb3 Qxh8 11. Qxb7 Bc6 12. Qc8+ Kf7 13. Nf3! { This is just winning } { [%csl Ge5,Gc6,Gg5][%cal Gf3e5,Ge5c6] }) 8. Qg6# { mate this line is good for those who like gambits and attacking chess } { [%cal Gg6e8,Gh7d7] } (8. Rxh8 { BAD MOVE } { Although is really makes no difference :) }) "};
//cfg = {width: '400px', pgn: "1. c3 e5 2. Qc2 d5 3. f4 { a gambit! f4! this move is to break black's center and go for some attacking chess } { [%csl Gf4] } 3... exf4 { black took the pawn } { [%csl Gf4] } 4. d4 { [%csl Gf4][%cal Gc1f4] } 4... g5 { black tries to hold on the pawn, but this can lead to some troble for black } { [%csl Gf4][%cal Gg5f4] } 5. h4 { white strikes } { [%csl Gh4][%cal Gh1h4] } 5... f6 6. hxg5 fxg5 { got an open file for the rook } 7. Rxh7 { This is just great and winning! If you are a kings gambit player, you may like a line similar to this. Just beware of 4. Qh4. } { [%csl Gh7][%cal Gc2h7] } 7... Nf6 { Nf6 black thinks he is winning what a fool } 8. Qg6# { mate this line is good for those who like gambits and attacking chess } { [%cal Gg6e8,Gh7d7] }"};
pgnView("b1", cfg);
</script>

Expand Down
Loading

0 comments on commit 322aefd

Please sign in to comment.