diff options
author | AnicJov <contact.andrija@gmail.com> | 2020-12-04 14:26:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-06 15:51:34 +0100 |
commit | fe1628746cae3de7ed36529bc43306fed4905e50 (patch) | |
tree | abd2693674a95b21006196e0b4c853e1ee8b1685 /Libraries/LibJS/Runtime/VM.cpp | |
parent | 01b62cc7f495e25f783b97a5b021067c817d65a5 (diff) | |
download | serenity-fe1628746cae3de7ed36529bc43306fed4905e50.zip |
Chess: Add ability to export game as PGN file
This patch adds an option to the menubar for exporting the current
game as a PGN file. This file can then be read by other chess
programs (and ours eventually) to replay the game or analyze it.
The implementation is mostly PGN spec compliant, however the code
could use some more work. Particularly the `const_cast`s...
But it's a start. :^)
Fixup: Chess: Fixed hard-coded home path in unveil() call
Fixup: Chess: Removed castling flags from Move struct
The castling detection logic is done inside Move::to_algebraic()
now, removing the need for is_castle_short and is_castle_long flags
inside of the Move struct.
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.cpp')
0 files changed, 0 insertions, 0 deletions