Check out Grant Acedrex, our featured variant for April, 2024.

Enter Your Reply

The Comment You're Replying To
H. G. Muller wrote on Sat, Feb 10 09:51 AM UTC:

Umm, I see now what the problem is when you try to paste a Diagram specification directly from the Page Source into the PTA. It contains a lot of HTML tags that do not produce any visible output, which I could make show up by first replacing the < character by the escape sequence for it. I then got this as the pasted definition against which the PTA complained:

<span>satellite=conquer
<span id="line401"></span>files=9
<span id="line402"></span>ranks=8
<span id="line403"></span>maxPromote=0
<span id="line404"></span>promoZone=1
<span id="line405"></span>promoChoice=NBRQ
<span id="line406"></span>graphicsDir=/graphics.dir/alfaeriePNG/
<span id="line407"></span>squareSize=50
<span id="line408"></span>graphicsType=png
<span id="line409"></span>symmetry=none
<span id="line410"></span>baring=0
<span id="line411"></span>pawn (nasty neighbours):P:fWfcnD:pawn:a2,c2,e2,g2,i2,b7,d7,f7,h7,,b2,d2,f2,h2,a7,c7,e7,g7,i7
<span id="line412"></span>double knight:N:N2:knight:b8,h8,,b1,h1
<span id="line413"></span>double step bishop:B:nA7:bishop:c1,g1,,c8,g8
<span id="line414"></span>double step rook:R:nD7:rook:a1,i1,,a8,i8
<span id="line415"></span>double step queen:Q:nD7nA7:queen:d8,f8,,d1,f1
<span id="line416"></span>king:K:KisO3:king:e1,,e8
<span id="line417"></span></span><span></span>

I suppose the best counter measure would be to scan every line for the occurence of the substring 'span>', and then retain only everything that is beyond the last occurrence of that. I do that now, and it appears to solve the problem: I can directly copy-paste Diagram definitions from a Page Source. I also improved the error reporting: when the Diagram script gets a specification it does not understand, it will now first replace all < caharacters by their HTML escape sequence, so that the browser will no longer recognize any HTML tags in it, and display these as encountered in the error message.

[Edit] While at it, I also expanded the capabilities of the Move-Definition Aid to understand leaps to the 4th ring. (As I already did yesterday in the Checkmating Applets.) Originally the 4th ring was only there for seeing when you had defined a rider, or for cutting the range of a slider. Perhaps I should increase the size of the panel, so that you could also see or enter 5th-ring moves.


Edit Form

Comment on the page Play-test applet for chess variants

Conduct Guidelines
This is a Chess variants website, not a general forum.
Please limit your comments to Chess variants or the operation of this site.
Keep this website a safe space for Chess variant hobbyists of all stripes.
Because we want people to feel comfortable here no matter what their political or religious beliefs might be, we ask you to avoid discussing politics, religion, or other controversial subjects here. No matter how passionately you feel about any of these subjects, just take it someplace else.
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.
Here is some preformatted text.
  This line begins with some indentation.
    This begins with even more indentation.
And this line has no indentation.

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.