Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Wolfram Language paclet for playing chess and computational analysis of chess games
Contributed by: Rafal Chojna
Play chess against the built-in engine from any valid position with adjustable difficulty levels. Wolfram/Chess provides Import and Export capabilities for FEN and PGN formats. It allows you to import chess games and positions into Wolfram Language expressions and analyze them using the full potential of the Wolfram Language.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Wolfram/Chess"]
To load the code after installation, evaluate this code:
Needs["Wolfram`Chess`"]
Create a symbolic representation of a chess position:
In[1]:= |
Out[1]= |
Find the best move in a position given by a FEN string:
In[2]:= |
Out[2]= |
Create a symbolic representation of a chess game from list of moves and metadata:
In[3]:= |
Out[3]= |
Export game to a PGN file:
In[4]:= |
Out[4]= |
Play a chess game:
In[5]:= |
Out[5]= |
Import list of chess games from a sample PGN file:
In[6]:= |
Out[6]= |
Wolfram Language Version 13.2
Creative Commons Attribution Share Alike 4.0 International