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`
Chessboard
​
Chessboard
[]
represents a chessboard at the standard starting position.
​
​
Chessboard
[fen]
represents a chessboard at the specified position given by a FEN string
fen
.
​
Details and Options

Examples  
(5)
Basic Examples  
(2)
Chessboard representing the standard starting position:
In[1]:=
b=
Chessboard
[]
Out[1]=
Chessboard
Active player: White
Material balance:
+0

In[2]:=
b["Graphics"]
Out[2]=
​
A chessboard showing a game state:
In[1]:=
b=
Chessboard
["2kr1b1r/ppp1qppp/2n2n2/3p1b2/3P1N2/2P1B3/PP1NQPPP/2KR1B1R b - - 3 11"]
Out[1]=
Chessboard
Active player: Black
Material balance:
+0

Graphics rendering of the position:
In[2]:=
b["Graphics"]
Out[2]=
List of legal moves:
In[3]:=
b["LegalMoves"]
Out[3]=
{a6,a5,b6,b5,g6,g5,h6,h5,Nb8,Na5,Ne5,Nb4,Nxd4,Ne8,Ng8,Nd7,Nh5,Ne4,Ng4,Bd7,Be6,Bg6,Be4,Bg4,Bd3,Bh3,Bc2,Bb1,Re8,Rd7,Rd6,Rg8,Qe8,Qd7,Qd6,Qe6,Qc5,Qe5,Qb4,Qe4,Qa3,Qxe3,Kb8,Kd7}
Scope  
(3)

SeeAlso
ChessGame
 
▪
ChessboardRecognize
Formats:
FEN
RelatedGuides
▪
Chess
""

© 2025 Wolfram. All rights reserved.

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