Skip to content

OWLjz18/chess-game-formatter

Repository files navigation

Chess Game Formatter

CI GitHub tag

I am a Telegram bot that will be happy to help you format your chess.com games

But first, we must have a game to format, if not what will i do? 😹

To obtain the data of a game, all you have to do is: Open said game, open the options and select where it says "Share PGN". You send it to me and I can do my job.

These data must have a format equal to this:

[Event "Dayrre vs. JAZA_18"]
[Site "Chess.com"]
[Date "2022-10-05"]
[White "Dayrre"]
[Black "JAZA_18"]
[Result "0-1"]
[WhiteElo "334"]
[BlackElo "866"]
[TimeControl "blitz"]
[Termination "JAZA_18 won on time"]
1. e4 Nf6 2. d4 Nc6 3. Nf3 g6 4. Nc3 Bg7 5. Bb5 b6 6. Bg5 Bb7 7. Nd5 O-O 8. O-O
Nxd5 9. Bxe7 Qxe7 10. Ng5 Qxg5 11. f4 Qd8 12. Bc4 Nf6 13. h4 Qe7 14. b3 Ng4 15.
Be2 Bf6 16. Bxg4 Bc8 17. Bxd7 Bxd7 18. Qh5 Bxd4+ 0-1

Now once the data is obtained, you will have to start a conversation with me, click here @chess_game_formatter_bot and send me the /start command.

After you have already started a conversation with me, you can send me the data you previously obtained and I will be able to return it to you formatted, like the following:

⬜ Dayrre (334) vs JAZA_18 (866) ⬛
-----------------------------------

⡇ 1  ⡇ e4   ⡇ Nf6   ⡇
⡇ 2  ⡇ d4   ⡇ Nc6   ⡇
⡇ 3  ⡇ Nf3  ⡇ g6    ⡇
⡇ 4  ⡇ Nc3  ⡇ Bg7   ⡇
⡇ 5  ⡇ Bb5  ⡇ b6    ⡇
⡇ 6  ⡇ Bg5  ⡇ Bb7   ⡇
⡇ 7  ⡇ Nd5  ⡇ O-O   ⡇
⡇ 8  ⡇ O-O  ⡇ Nxd5  ⡇
⡇ 9  ⡇ Bxe7 ⡇ Qxe7  ⡇
⡇ 10 ⡇ Ng5  ⡇ Qxg5  ⡇
⡇ 11 ⡇ f4   ⡇ Qd8   ⡇
⡇ 12 ⡇ Bc4  ⡇ Nf6   ⡇
⡇ 13 ⡇ h4   ⡇ Qe7   ⡇
⡇ 14 ⡇ b3   ⡇ Ng4   ⡇
⡇ 15 ⡇ Be2  ⡇ Bf6   ⡇
⡇ 16 ⡇ Bxg4 ⡇ Bc8   ⡇
⡇ 17 ⡇ Bxd7 ⡇ Bxd7  ⡇
⡇ 18 ⡇ Qh5  ⡇ Bxd4+ ⡇

Type: Blitz.
Date: 2022-10-05.

Result: 0-1.
JAZA_18 won on time.

Important: This project has nothing to do with the developers or the chess.com app.


Documentation 📚

You can read the documentation of all the code, clicking here.


Author 🦉


License 📃

This project is licensed under an MIT license, please visit the LICENSE.md file for more information about it.

About

Bot for formatting games played on chess.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published