Check out Symmetric Chess, our featured variant for March, 2024.

Enter Your Reply

The Comment You're Replying To
H. G. Muller wrote on Fri, Mar 31, 2023 07:35 AM UTC in reply to Fergus Duniho from Thu Mar 30 09:14 PM:

I've noticed some different things about Shako. First, there is a folder called originalShako, and Shako is the only game with such a folder. Second, there is a Shako file called shako-chess-mxdel.js, and it is the only file matching the *mxdel* wildcard.

Definitely something wrong there, and considering the 'modified' date probably of my doing. It seems the file was moved 'out of the way' by changing an o into an x. I don't recall doing this, but I was probably experimenting for how to hack new games directly into the Jocly library, to discover which files it actualy used for running by removing those and try what would break.

The curious thing is that in the Jocly install on my website the name is shako-chess-model.js. The date is exactly the same, though. (And just a few days before I implemented my first game, Team-Mate Chess.) I must have renamed it after the jocly/dist/ sub-tree was copied to CVP.

The problem is that the content of that file is also not what it is supposed to be. It is not uglified, and looks like the source file jocly/src/games/chessbase/shako-model.js. Normally the files jocly/dist/browser/games/chessbase/*-chess-model.js are a concatenation of the base-model.js, the variant-specific model file and perhaps some others, and then uglified. The uglification is probably not essential (the hack I used for implementing my games was to replace the uglified variant-specific part from such a file for a similar game by source code of my own game, but it needs to contain the base-model.js code to work.

Problem is that I cannot find the original uglified shako-chess-model.js file anywhere amongst my files. I tried to put back this file (on my own website) from a recently compiled Jocly from the back-porting project, but apparently the base-model.js file there is no longer sufficiently compatible with the old one for this to work. Unfortunately I forgot from where I clopied the Jocly version on my website, otherwise I could fetch a shako-chess-model.js file from there. Perhaps Zied still has a version on the Musketeer Chess website.

[Edit] I now managed to find a shako-chess-model.js file in the Downloads folder of one of my Windows systems. When I put that in the Jocly install on my website (and go through the cumbersome procedure of flushing the cached version), Shako works again there. The file is probably the same as that in the originalShako directory (where all files do have the same date). This directory does not exist in the Jocly install on my website, though. So I have no idea how it got created on CVP, which (at least for the jocly/dist/ part) was supposed to be a copy of that. It looks like someone copied all shako-* files on CVP to this directory, and then renamed the shako-chess-model.js. Anyway, I copied the shako-chess-model.js file now back to the chessbase folder on CVP as well. This should fix the problem if nothing else was changed.


Edit Form

Comment on the page Play Chess Variants with Jocly

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.