On this page:
chess-board-pict
chess-piece-pict
chess-square-pict
5.1 Chess Display Settings
chess-display-settings?
default-chess-display-settings
8.12

5 Chess Pictures🔗ℹ

 (require chess/pict) package: chess

procedure

(chess-board-pict board    
  [#:settings settings])  pict?
  board : chess-board?
  settings : chess-display-settings?
   = default-chess-display-settings
Draws a picture of board, using settings to decide what icons to use for each piece, what colors to use for squares, etc.

procedure

(chess-piece-pict piece    
  [#:settings settings])  pict?
  piece : colored-chess-piece?
  settings : chess-display-settings?
   = default-chess-display-settings
Draws a picture of piece, using settings to decide what icons to use.

Examples:

procedure

(chess-square-pict square    
  [#:settings settings])  pict?
  square : (or/c chess-square? occupied-chess-square?)
  settings : chess-display-settings?
   = default-chess-display-settings
Draws a picture of square, including the piece occupying it if square is an occupied chess square. The color of the square is based on settings and on what position the square is at, in order to ensure adjacent squares have different colors.

Examples:

5.1 Chess Display Settings🔗ℹ

The drawing of chess boards and pieces is controlled by chess display settings. These settings determine what icons to use for pieces, how to draw squares, and various other factors. At present the default settings cannot be changed.

procedure

(chess-display-settings? v)  boolean

  v : any/c
A predicate for chess display settings.

Example:
> default-chess-display-settings

(chess-display-settings

  #:alternate-cell-pict image

  #:black-bishop-pict image

  #:black-king-pict image

  #:black-knight-pict image

  #:black-pawn-pict image

  #:black-queen-pict image

  #:black-rook-pict image

  #:cell-pict image

  #:white-bishop-pict image

  #:white-king-pict image

  #:white-knight-pict image

  #:white-pawn-pict image

  #:white-queen-pict image

  #:white-rook-pict image)