Check out Glinski's Hexagonal Chess, our featured variant for May, 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

Jocly. An html-based web platform for playing 2-player abstract stategy games.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Tue, Mar 9, 2021 06:13 PM UTC in reply to H. G. Muller from Sat Feb 13 09:18 AM:

I'm working on a php version of control.html a couple of directories lower at /play/jocly/control.php. I added an extra parameter to the query string to tell which directory a game is in. The following URL works:

https://www.chessvariants.com/play/jocly/control.php?game=xiangqi&dir=chessbase

Curiously, though, when I reverse the order of the two parameters, it gives me Chess instead of Xiangqi:

https://www.chessvariants.com/play/jocly/control.php?dir=chessbase&game=xiangqi

Bearing this in mind, I created a rewrite rule in .htaccess that lets me use the dir value as a directory name before the game of the name. Given that the following URL show the description and rules for the correct game, I can tell that it is being rewritten correctly, but when I use it, Jocly does not work:

https://www.chessvariants.com/play/jocly/chessbase/xiangqi

I added some code to pass the PHP variable's value to a JavaScript variable called game, but it didn't help. I also tried GAME, but that didn't help either. Any ideas about what I can do?