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
PGN (.pgn)
▪
Import
and
Export
support PGN format when the
Wolfram/Chess
paclet is loaded in the current session.
Background & Context

Import & Export
Import Elements
Options
​
Examples  
(42)
Basic Examples  
(2)
PGN
Import
and
Export
are registered when loading Wolfram/Chess:
In[2]:=
Needs["Wolfram`Chess`"]
​
Import a summary of a PGN file:
In[1]:=
Import["ExampleData/sample.pgn","Summary"]
Out[1]=
Format
PGN
GameCount
2
FileName
sample.pgn
FileSize
1.072kB
Import the last positions of each game:
In[2]:=
Import["ExampleData/sample.pgn",{"PositionRenderingList",All,-1}]
Out[2]=
Scope  
(5)

Import Elements  
(19)

Import Options  
(14)

Export Options  
(2)

SeeAlso
Import
 
▪
CloudImport
Formats:
FEN
RelatedGuides
▪
Importing & Exporting
▪
Listing of All Formats
""

© 2025 Wolfram. All rights reserved.

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