File tree 3 files changed +69
-6
lines changed
3 files changed +69
-6
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ function parsePgnFull(pgn){
272
272
}
273
273
274
274
// test
275
- const testPgn = `[Event "Casual Racing Kings game"]
275
+ const testPgnRacingKings = `[Event "Casual Racing Kings game"]
276
276
[Site "https://lichess.org/oaQqCIYx"]
277
277
[Date "2020.11.25"]
278
278
[White "chesshyperbot"]
@@ -294,7 +294,28 @@ const testPgn = `[Event "Casual Racing Kings game"]
294
294
295
295
1. Kg3 Kb3 2. Kf4 { Black resigns. } 1-0`
296
296
297
- //console.log("test", parsePgnFull(testPgn))
297
+ const testPgnCrazyhouse = `[Event "Casual Crazyhouse game"]
298
+ [Site "https://lichess.org/Fae7ZYEr"]
299
+ [Date "2020.11.25"]
300
+ [White "sChessNoob"]
301
+ [Black "chesshyperbot"]
302
+ [Result "0-1"]
303
+ [UTCDate "2020.11.25"]
304
+ [UTCTime "16:53:36"]
305
+ [WhiteElo "1500"]
306
+ [BlackElo "1898"]
307
+ [BlackTitle "BOT"]
308
+ [Variant "Crazyhouse"]
309
+ [TimeControl "180+0"]
310
+ [ECO "D02"]
311
+ [Opening "Queen's Pawn Game: Zukertort Variation"]
312
+ [Termination "Normal"]
313
+ [Annotator "lichess.org"]
314
+
315
+ 1. d4 d5 2. Nf3 { D02 Queen's Pawn Game: Zukertort Variation } Bf5 3. e3 e6 4. Bd3 Bxd3 5. Qxd3 Nf6 6. B@g5 B@a6 7. Qd2 Ne4 8. Bxd8 Nxd2 9. Kxd2 Bb4+ 10. Nc3 Q@e2# { Black wins by checkmate. } 0-1`
316
+
317
+ //console.log("test", parsePgnFull(testPgnRacingKings))
318
+ console . log ( "test" , parsePgnFull ( testPgnCrazyhouse ) )
298
319
299
320
if ( typeof module != "undefined" ) {
300
321
module . exports = {
Original file line number Diff line number Diff line change @@ -69317,7 +69317,7 @@ function parsePgnFull(pgn){
69317
69317
}
69318
69318
69319
69319
// test
69320
- const testPgn = `[Event "Casual Racing Kings game"]
69320
+ const testPgnRacingKings = `[Event "Casual Racing Kings game"]
69321
69321
[Site "https://lichess.org/oaQqCIYx"]
69322
69322
[Date "2020.11.25"]
69323
69323
[White "chesshyperbot"]
@@ -69339,7 +69339,28 @@ const testPgn = `[Event "Casual Racing Kings game"]
69339
69339
69340
69340
1. Kg3 Kb3 2. Kf4 { Black resigns. } 1-0`
69341
69341
69342
- //console.log("test", parsePgnFull(testPgn))
69342
+ const testPgnCrazyhouse = `[Event "Casual Crazyhouse game"]
69343
+ [Site "https://lichess.org/Fae7ZYEr"]
69344
+ [Date "2020.11.25"]
69345
+ [White "sChessNoob"]
69346
+ [Black "chesshyperbot"]
69347
+ [Result "0-1"]
69348
+ [UTCDate "2020.11.25"]
69349
+ [UTCTime "16:53:36"]
69350
+ [WhiteElo "1500"]
69351
+ [BlackElo "1898"]
69352
+ [BlackTitle "BOT"]
69353
+ [Variant "Crazyhouse"]
69354
+ [TimeControl "180+0"]
69355
+ [ECO "D02"]
69356
+ [Opening "Queen's Pawn Game: Zukertort Variation"]
69357
+ [Termination "Normal"]
69358
+ [Annotator "lichess.org"]
69359
+
69360
+ 1. d4 d5 2. Nf3 { D02 Queen's Pawn Game: Zukertort Variation } Bf5 3. e3 e6 4. Bd3 Bxd3 5. Qxd3 Nf6 6. B@g5 B@a6 7. Qd2 Ne4 8. Bxd8 Nxd2 9. Kxd2 Bb4+ 10. Nc3 Q@e2# { Black wins by checkmate. } 0-1`
69361
+
69362
+ //console.log("test", parsePgnFull(testPgnRacingKings))
69363
+ console.log("test", parsePgnFull(testPgnCrazyhouse))
69343
69364
69344
69365
if(typeof module != "undefined"){
69345
69366
module.exports = {
You can’t perform that action at this time.
0 commit comments