The Chess Variant Pages
Custom Search

Enter Your Reply

The Comment You're Replying To
H. G. Muller wrote on 2020-08-07 UTC

Is there a GAME code command for setting the board to a given FEN code? I am currently looking into the issue of handling shuffle games. But because potentially every square on the board could be involved in a shuffle, it seems a good idea to store the entire board in a constant, like setconst startshuffle fencode; . The trick is to set up the board from the retreived constant, if that existed.

[Edit] Or would it be better to copy and restore the $space system variable, though

setconst startshuffle $space;
setsystem space const startshuffle;


[Edit2] Well, the latter seems to work, so I suppose I can stick to that. But something else: I tried shuffle #a; , where a is an array of coordinates. But that doesn't do anything. Apparently shuffle wants to have the list of coordinates it should shuffle as literals. I could not think of any better way than joining all array elements in a for-next loop into a space-separated text string, append that to the string "shuffle", and apply eval to it. Isn't there really any simpler way to do that?

Edit Form

Comment on the page Game Courier Logs page

Quick Markdown Guide

By default, new comments may be entered as Markdown, simple markup syntax designed to be readable and not look like markup. Comments stored as Markdown will be converted to HTML by Parsedown before displaying them. This follows the Github Flavored Markdown Spec with support for Markdown Extra. For a good overview of Markdown in general, check out the Markdown Guide. Here is a quick comparison of some commonly used Markdown with the rendered result:

Top level header: <H1>

Block quote

Second paragraph in block quote

First Paragraph of response. Italics, bold, and bold italics.

Second Paragraph after blank line. Here is some HTML code mixed in with the Markdown, and here is the same <U>HTML code</U> enclosed by backticks.

Secondary Header: <H2>

  • Unordered list item
  • Second unordered list item
  • New unordered list
    • Nested list item

Third Level header <H3>

  1. An ordered list item.
  2. A second ordered list item with the same number.
  3. A third ordered list item.

Alt text for a graphic image

A definition list
A list of terms, each with one or more definitions following it.
An HTML construct using the tags <DL>, <DT> and <DD>.
A term
Its definition after a colon.
A second definition.
A third definition.
Another term following a blank line
The definition of that term.