Skip to content

Commit 2ce6d1d

Browse files
Test crazyhouse
1 parent a99ff0f commit 2ce6d1d

File tree

3 files changed

+69
-6
lines changed

3 files changed

+69
-6
lines changed

post.js

+23-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function parsePgnFull(pgn){
272272
}
273273

274274
// test
275-
const testPgn = `[Event "Casual Racing Kings game"]
275+
const testPgnRacingKings = `[Event "Casual Racing Kings game"]
276276
[Site "https://lichess.org/oaQqCIYx"]
277277
[Date "2020.11.25"]
278278
[White "chesshyperbot"]
@@ -294,7 +294,28 @@ const testPgn = `[Event "Casual Racing Kings game"]
294294
295295
1. Kg3 Kb3 2. Kf4 { Black resigns. } 1-0`
296296

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))
298319

299320
if(typeof module != "undefined"){
300321
module.exports = {

web/out.js

+23-2
Original file line numberDiff line numberDiff line change
@@ -69317,7 +69317,7 @@ function parsePgnFull(pgn){
6931769317
}
6931869318

6931969319
// test
69320-
const testPgn = `[Event "Casual Racing Kings game"]
69320+
const testPgnRacingKings = `[Event "Casual Racing Kings game"]
6932169321
[Site "https://lichess.org/oaQqCIYx"]
6932269322
[Date "2020.11.25"]
6932369323
[White "chesshyperbot"]
@@ -69339,7 +69339,28 @@ const testPgn = `[Event "Casual Racing Kings game"]
6933969339

6934069340
1. Kg3 Kb3 2. Kf4 { Black resigns. } 1-0`
6934169341

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))
6934369364

6934469365
if(typeof module != "undefined"){
6934569366
module.exports = {

web/outopt.js

+23-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)