mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Clean up previous patch
This commit is contained in:
@@ -12,7 +12,7 @@ You can download data from [here](http://rebel13.nl/index.html)
|
||||
|
||||
## Convert pgn files
|
||||
|
||||
**Important : convert text will be superheavy (approx 200 byte / position)**
|
||||
**Important : convert text will be superheavy (approx 200 byte / position)**
|
||||
|
||||
python pgn_to_plain.py --pgn "pgn/*.pgn" --start_ply 1 --output converted_pgn.txt
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ def parse_comment_for_score(comment_str: str, board: chess.Board) -> int:
|
||||
score = 0
|
||||
|
||||
return score
|
||||
|
||||
|
||||
def parse_game(game: chess.pgn.Game, writer, start_play: int=1)->None:
|
||||
board: chess.Board = game.board()
|
||||
if not game_sanity_check(game):
|
||||
@@ -105,6 +105,6 @@ def main():
|
||||
break
|
||||
parse_game(game, f, args.start_ply)
|
||||
f.close()
|
||||
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user