File:MChess Pro vs Susan Polgar, 1995.gif

Original file (800 × 800 pixels, file size: 3.52 MB, MIME type: image/gif, looped, 98 frames, 2 min 27 s)

Summary

Description
English: Game between Susan Polgar and MChess Pro, 1995
Date
Source Own work
Author Morn
GIF development
InfoField
 
This GIF graphic was created with Python.
Source code
InfoField

Python code

Source code
#!/usr/bin/env python3  # Plot a PGN game using python-chess and ImageMagick  import os import chess.pgn import chess.svg  pgn = open('mchess-polgar.pgn') game = chess.pgn.read_game(pgn) board = game.board()  def svg(i):     lm = board.peek()     a = [(lm.from_square, lm.to_square)]     s = chess.svg.board(board, arrows = a, size = 800)      f1 = "g_%04u.svg" % i     f2 = "g_%04u.png" % i      with open(f1, 'w') as f:         f.write(s)     os.system("convert %s %s" % (f1, f2))     os.system("rm %s" % f1)  i = 1  for m in game.mainline_moves():     board.push(m)     svg(i)     i += 1  # pause animation at the end: for j in range(3):     svg(i)     i += 1  # create animation with # convert -delay 150 g_*.png -loop 0 g.gif 

PGN

[Event "The Hague AEGON"] [Site "The Hague"] [Date "1995.??.??"] [Round "6"] [White "Comp MChess Pro"] [Black "Polgar, Zsuzsa"] [Result "1-0"] [ECO "B35"]  1.e4 c5 2.Nf3 Nc6 3.d4 cxd4 4.Nxd4 g6 5.Nc3 Bg7 6.Be3 Nf6 7.Bc4 O-O 8.Bb3 a5 9.f3 d5 10.Bxd5 Nxd5 11.Nxd5 f5 12.Nxc6 bxc6 13.Nb6 Rb8 14.Qxd8 Rxd8 15.Rd1 Rxd1+ 16.Kxd1 fxe4 17.Nxc8 Rxc8 18.b3 exf3 19.gxf3 a4 20.Re1 Ra8 21.Re2 Kf7 22.Bc5 e6 23.Rd2 Ke8 24.Ke2 Be5 25.Ke3 g5 26.Ke4 Bf4 27.Rg2 Kf7 28.h4 h6 29.Bb4 Rb8 30.Bc3 Ra8 31.Bd4 Ra5 32.hxg5 hxg5 33.Bc3 Ra8 34.Be5 axb3 35.cxb3 Bxe5 36.Kxe5 Ke7 37.a4 Rb8 38.Rxg5 Rxb3 39.Rg7+ Kd8 40.f4 Rb4 41.a5 Ra4 42.Kxe6 Re4+ 43.Kd6 Rd4+ 44.Kxc6 Rxf4 45.a6 Rc4+ 46.Kb5 Rc7 47.Rg8+ Kd7 48.a7 1-0 

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

10 November 2021

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:00, 10 November 2021Thumbnail for version as of 16:00, 10 November 2021800 × 800 (3.52 MB)MornUploaded own work with UploadWizard

The following page uses this file: