Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

fortress. Missing description (12x12, Cells: 144) [All Comments] [Add Comment or Rating]
H. G. Muller wrote on Thu, Feb 22 11:14 PM UTC in reply to Fergus Duniho from 10:56 PM:

This is fishy, as these extraneous images are defined with the extension .gif, and betzaNew.js is programmed to keep the existing extension, or use that of the regular pieces if no extension was specified. And this was working when I made the Diagram. SOmething is going wrong here, but I don't see immediately what. The code to create the image URL looks OK:

  var im = imag[n];
  if(im.indexOf('%') < 0) return graphDir + prefix + im; // from standard set
  var p = im.replace('%', prefix); // custom graphics; replace % by color prefix
  p = p.split('.'); if(p.length == 1) p[1] = graphSuffix;
  p = p[0] + (p[1] == '' ? '' : '.' + p[1]);
  if(p[0] == '*') p = graphDir + p.substring(1);
  return p;

After the split p[1] should have been 'gif', and p.length 2.