File:TUROCHAMP vs Glennie, 1952.gif

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(800 × 800 像素,檔案大小:2.89 MB,MIME 類型:image/gif、​循環、​61 畫格、​1分32秒)


摘要

描述
English: Chess game between TUROCHAMP (with its moves calculated by Alan Turing) and Alick Glennie in 1952. After 29 moves, TUROCHAMP is in a lost position and resigns.
日期
來源 自己的作品
作者 Morn
GIF開發
InfoField
 
本GIF graphic使用Python創作。
原始碼
InfoField

Python code

Source code
#!/usr/bin/env python3

# Plot the TUROCHAMP-Glennie game using python-chess and ImageMagick

import os
import chess.pgn
import chess.svg

pgn = open('glennie.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))

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

# Now you can create the GIF animation with:
# convert -delay 150 g_*.png -loop 0 g.gif

PGN

Here is the "glennie.pgn" input file required by the Python code above:

[Event "Friendly game"]
[Site "Manchester, England"]
[Date "1952.??.??"]
[Round "?"]
[White "TUROCHAMP"]
[Black "Alick Glennie"]
[Result "0-1"]
[ECO "C26"]
[PlyCount "58"]

1.e4 e5 2.Nc3 Nf6 3.d4 Bb4 4.Nf3 d6 5.Bd2 Nc6 6.d5 Nd4 7.h4 Bg4 8.a4 Nxf3+ 9.gxf3 Bh5 10.Bb5+ c6 11.dxc6 O-O 12.cxb7 Rb8 13.Ba6 Qa5 14.Qe2 Nd7 15.Rg1 Nc5 16.Rg5 Bg6 17.Bb5 Nxb7 18.O-O-O Nc5 19.Bc6 Rfc8 20.Bd5 Bxc3 21.Bxc3 Qxa4 22.Kd2 Ne6 23.Rg4 Nd4 24.Qd3 Nb5 25.Bb3 Qa6 26.Bc4 Bh5 27.Rg3 Qa4 28.Bxb5 Qxb5 29.Qxd6 Rd8 0-1

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
Creative Commons CC-Zero 此檔案在創用CC CC0 1.0 通用公有領域貢獻宣告之下分發。
在此宣告之下分發本作品者,已依據各國著作權法,在全世界放棄其對本作品所擁有的著作權及所有相關相似的法律權利,從而將本作品貢獻至公有領域。您可以複製、修改、分發和演示該作品,用於任何商業用途,所有這些都不需要請求授權。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

西洋棋對局 中文 (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2020年12月14日 (一) 12:21於 2020年12月14日 (一) 12:21 版本的縮圖800 × 800(2.89 MB)MornUploaded own work with UploadWizard

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: