Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Chess

Guides

  • Chess

Symbols

  • Chessboard
  • ChessboardQ
  • ChessboardRecognize
  • ChessGame
  • ChessGameQ
  • ChessPlayer
  • ChessViewer
  • EngineEvaluate
  • Engine
  • QuitEngine
  • RandomChessboard
  • RandomChessGame
  • StartEngine

Formats

  • FEN
  • PGN
Wolfram`Chess`
ChessGame
​
ChessGame[
key
1

val
1
,…]
represents a chess game containing a sequence of moves and additional metadata.
​
Details and Options

Examples  
(8)
Basic Examples  
(1)
Import the first game stored in a PGN file as a
ChessGame
:
In[1]:=
game=Import["ExampleData/sample.pgn",{"ChessGames",1}]
Out[1]=
ChessGame
Fischer - Spassky
Date: 1992.11.04

Extract metadata from the game:
In[2]:=
game["Metadata"]//Dataset
Out[2]=
Black
Boris Spassky
Date
Wed 4 Nov 1992
Event
F/S Return Match
Result
1/2-1/2
Round
29
Site
Belgrade, Serbia JUG
White
Bobby Fischer
Dynamically view the game:
In[3]:=
ChessViewer
[game]
Out[3]=
Scope  
(6)

Properties & Relations  
(1)

SeeAlso
Chessboard
 
▪
ChessboardRecognize
Formats:
PGN
 
▪
FEN
RelatedGuides
▪
Chess
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com