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`
RandomChessGame
​
RandomChessGame
[n]
yields a
ChessGame
with at most
n
moves played at random from the initial position.
​
​
RandomChessGame
[n,metadata]
yields a
ChessGame
with specific values of metadata.
​
​
RandomChessGame
[n,metadata,fen]
yields a
ChessGame
started from the position described by
fen
.
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Generate a random game between Alice and Bob of up to a 100 moves:
In[1]:=
g=
RandomChessGame
[100,"White""Alice","Black""Bob"]
Out[1]=
ChessGame
Alice - Bob
Date: Fri 2 Jun 2023 10:25:29

Browse the game:
In[2]:=
ChessViewer
[g]
Out[2]=
Scope  
(1)

SeeAlso
ChessGame
RelatedGuides
▪
Chess
""

© 2025 Wolfram. All rights reserved.

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