Check out Kyoto Shogi, our featured variant for June, 2025.


[ 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

Interactive diagrams. (Updated!) Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
A. M. DeWitt wrote at 12:08 PM UTC in reply to H. G. Muller from 06:31 AM:

I will have a look at it.

I would love to hear your thoughts on the Applet. Especially areas where I could improve it.

But right-clicking of pieces in now used to summon their move diagrams, which is something I frequently use, and badly miss on my tablet. Because touch-screen devices have no right-click.

I looked it up once for programming right-click touches on my Applet, and here's what I found.

Typically, a right-click on a mobile device is a long press, typically at least a half-second long. So you could use ontouchstart to execute a setTimeout(<show piece move>, 500), and then use ontouchend to execute clearTimeout() so that this does not interfere with the normal touches. I haven't tested this personally, but I think that is the best way to go about it.

Drawing circles and arrows also seems something that would be more relevant to a board editor tha for a diagram to play against.

I can see your point there, especially since the Interactive Diagram:

  • has board cells that fluctuate width based on how narrow the screen is
  • may not always have a reliable place for holding the arrow canvas

Fortunately the former is easily fixed by setting min-width, min-height, max-eidth, and max-height to sqrSize.