- Blind mode tutorial
lichess.org
Donate

How to import PGN into lichess from chesscom without it saying “game ended in a draw”

I’m pretty sure this is just a bug with chess.com game exports - in that the PGNs that it generates are interpreted by lichess as a draw, when they’re really wins.

For example, the following pgn is a win for black - but when I import it into lichess, it says “game ended as a draw”.

[Site "Chess.com iPhone"]
[Date "05/16/2020 05:03PM"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
[White "marancal (1172)"]
[Black "AHeroRises (1231)"]
[Result 0-1]
[Termination "AHeroRises won by resignation"]

1.e4 {15:09} d5 {15:08} 2.exd5 {15:17} Nf6 {15:17} 3.c4 {15:21} e6 {15:26} 4.Qe2 {15:20} Bc5 {15:13} 5.a3 {15:13} Qe7 {15:16} 6.dxe6 {15:20} Bxe6 {15:23} 7.d3 {15:28} Nc6 {15:29} 8.b4 {15:33} Bd4 {15:30} 9.Ra2 {15:39} Nxb4 {15:15} 10.axb4 {15:35} Qxb4+ {15:23} 11.Qd2 {15:20} Qxb1 {15:15} 12.Ne2 {14:56} Bb6 {14:47} 13.Nc3 {14:53} Qb4 {14:21} 14.Rb2 {14:51} Qe7 {14:23} 15.Kd1 {14:25} O-O-O {14:25} 16.Be2 {13:30} Bxc4 {13:37} 17.Re1 {13:32} Kb8 {13:14} 18.Rxb6 {12:43} axb6 {13:00} 19.d4 {12:26} Bb3+ {12:59} 20.Qc2 {12:23} Bxc2+ {13:04} 21.Kxc2 {12:28} Qb4 {12:33} 22.Bd2 {12:20} Rxd4 {12:05} 23.Rb1 {12:18} Rxd2+ {11:46} 24.Kxd2 {12:20} Qd4+ {11:29} 25.Kc2 {12:24} Qxf2 {11:34} 26.Rf1 {12:20} Qxg2 {11:23} 27.Rxf6 {12:21} gxf6 {11:31} 28.Ne4 {12:20} Qxe2+ {11:38} 29.Nd2 {12:26} Rd8 {11:46} 30.Kb3 {12:34} Qxd2 {11:50} 31.Ka4 {12:40} {AHeroRises wins by Resignation}

For example - I imported this PGN and I get:

https://lichess.org/QoZnyPu4
(which says that the game is a draw - when it’s not).

What can I do to fix this? Is there something I need to change manually in the PGN to fix this?

Thanks!

I’m pretty sure this is just a bug with chess.com game exports - in that the PGNs that it generates are interpreted by lichess as a draw, when they’re really wins. For example, the following pgn is a win for black - but when I import it into lichess, it says “game ended as a draw”. [Site "Chess.com iPhone"] [Date "05/16/2020 05:03PM"] [FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"] [White "marancal (1172)"] [Black "AHeroRises (1231)"] [Result 0-1] [Termination "AHeroRises won by resignation"] 1.e4 {15:09} d5 {15:08} 2.exd5 {15:17} Nf6 {15:17} 3.c4 {15:21} e6 {15:26} 4.Qe2 {15:20} Bc5 {15:13} 5.a3 {15:13} Qe7 {15:16} 6.dxe6 {15:20} Bxe6 {15:23} 7.d3 {15:28} Nc6 {15:29} 8.b4 {15:33} Bd4 {15:30} 9.Ra2 {15:39} Nxb4 {15:15} 10.axb4 {15:35} Qxb4+ {15:23} 11.Qd2 {15:20} Qxb1 {15:15} 12.Ne2 {14:56} Bb6 {14:47} 13.Nc3 {14:53} Qb4 {14:21} 14.Rb2 {14:51} Qe7 {14:23} 15.Kd1 {14:25} O-O-O {14:25} 16.Be2 {13:30} Bxc4 {13:37} 17.Re1 {13:32} Kb8 {13:14} 18.Rxb6 {12:43} axb6 {13:00} 19.d4 {12:26} Bb3+ {12:59} 20.Qc2 {12:23} Bxc2+ {13:04} 21.Kxc2 {12:28} Qb4 {12:33} 22.Bd2 {12:20} Rxd4 {12:05} 23.Rb1 {12:18} Rxd2+ {11:46} 24.Kxd2 {12:20} Qd4+ {11:29} 25.Kc2 {12:24} Qxf2 {11:34} 26.Rf1 {12:20} Qxg2 {11:23} 27.Rxf6 {12:21} gxf6 {11:31} 28.Ne4 {12:20} Qxe2+ {11:38} 29.Nd2 {12:26} Rd8 {11:46} 30.Kb3 {12:34} Qxd2 {11:50} 31.Ka4 {12:40} {AHeroRises wins by Resignation} For example - I imported this PGN and I get: https://lichess.org/QoZnyPu4 (which says that the game is a draw - when it’s not). What can I do to fix this? Is there something I need to change manually in the PGN to fix this? Thanks!

"[Termination "(null)"]"
You should change this. I'm not sure though.

"[Termination "(null)"]" You should change this. I'm not sure though.

@jomega

That worked, thanks!!!

For anyone who is wondering - it looks like this: [Result 0-1]

@jomega That worked, thanks!!! For anyone who is wondering - it looks like this: [Result 0-1]

First of all, a PGN must contain following tags in this particular order: Event, Site, Date, Round, White, Black, Result.

Secondly, Result tag should be [Result "0-1"]. 1-0 white won, 0-1 black won, 1/2-1/2 draw, * ongoing game/result unknown.
Both Result tag and move body should specify the result, e.g. 31.Ka4 {12:40} {AHeroRises wins by Resignation} 0-1
Date in almost ISO format, except that it uses dots instead og hyphens/minuses, i.e. [Date "yyyy.mm.dd"], e.g.
[Date "2020.05.17"]. If value is unknown replace with ?, e.g. [Date "????.??.??"] or [Event "?"]

Check out the link posted by jomega.

First of all, a PGN must contain following tags in this particular order: Event, Site, Date, Round, White, Black, Result. Secondly, Result tag should be [Result "0-1"]. 1-0 white won, 0-1 black won, 1/2-1/2 draw, * ongoing game/result unknown. Both Result tag and move body should specify the result, e.g. 31.Ka4 {12:40} {AHeroRises wins by Resignation} 0-1 Date in almost ISO format, except that it uses dots instead og hyphens/minuses, i.e. [Date "yyyy.mm.dd"], e.g. [Date "2020.05.17"]. If value is unknown replace with ?, e.g. [Date "????.??.??"] or [Event "?"] Check out the link posted by jomega.

also,when you import a game ,does it also upload the game onto the opening explorer? i feel that your database is a bit outdated and if this were to happen it would really improve its quality

also,when you import a game ,does it also upload the game onto the opening explorer? i feel that your database is a bit outdated and if this were to happen it would really improve its quality

No, I don't think it does. And also, I don't see how importing random games, which may contain random data would improve the quality. On the contrary, it would decrease it.

No, I don't think it does. And also, I don't see how importing random games, which may contain random data would improve the quality. On the contrary, it would decrease it.

This topic has been archived and can no longer be replied to.