ross-spencer / chess

Repository related to Chess stats
0 stars 0 forks source link

Create personal dashboard #1

Open ross-spencer opened 1 year ago

ross-spencer commented 1 year ago

Import game on Lichess

curl -X POST https://lichess.org/api/import \
   -H "Content-Type: application/x-www-form-urlencoded" \
   -d "pgn=%5BEvent%20%22F%2FS%20Return%20Match%22%5D%0A%5BSite%20%22Belgrade%2C%20Serbia%20JUG%22%5D%0A%5BDate%20%221992.11.04%22%5D%0A%5BRound%20%2229%22%5D%0A%5BWhite%20%22Fischer%2C%20Robert%20J.%22%5D%0A%5BBlack%20%22Spassky%2C%20Boris%20V.%22%5D%0A%5BResult%20%221%2F2-1%2F2%22%5D%0A%0A1.%20e4%20e5%202.%20Nf3%20Nc6%203.%20Bb5%20a6%20%7BThis%20opening%20is%20called%20the%20Ruy%20Lopez.%7D%0A4.%20Ba4%20Nf6%205.%20O-O%20Be7%206.%20Re1%20b5%207.%20Bb3%20d6%208.%20c3%20O-O%209.%20h3%20Nb8%2010.%20d4%20Nbd7%0A11.%20c4%20c6%2012.%20cxb5%20axb5%2013.%20Nc3%20Bb7%2014.%20Bg5%20b4%2015.%20Nb1%20h6%2016.%20Bh4%20c5%2017.%20dxe5%0ANxe4%2018.%20Bxe7%20Qxe7%2019.%20exd6%20Qf6%2020.%20Nbd2%20Nxd6%2021.%20Nc4%20Nxc4%2022.%20Bxc4%20Nb6%0A23.%20Ne5%20Rae8%2024.%20Bxf7%2B%20Rxf7%2025.%20Nxf7%20Rxe1%2B%2026.%20Qxe1%20Kxf7%2027.%20Qe3%20Qg5%2028.%20Qxg5%0Ahxg5%2029.%20b3%20Ke6%2030.%20a3%20Kd6%2031.%20axb4%20cxb4%2032.%20Ra5%20Nd5%2033.%20f3%20Bc8%2034.%20Kf2%20Bf5%0A35.%20Ra7%20g6%2036.%20Ra6%2B%20Kc5%2037.%20Ke1%20Nf4%2038.%20g3%20Nxh3%2039.%20Kd2%20Kb5%2040.%20Rd6%20Kc5%2041.%20Ra6%0ANf2%2042.%20g4%20Bd3%2043.%20Re6%201%2F2-1%2F2"

Response:

{"id":"eBj0ewsZ","url":"https://lichess.org/eBj0ewsZ"}

Other links

Other features

ross-spencer commented 1 year ago
ross-spencer commented 1 year ago

NB. Guide on chess notation: https://www.chess.com/article/view/chess-notation#:~:text=Flip%20Board,pawn%2C%20since%20P%20is%20omitted.