Check out Atomic Chess, our featured variant for November, 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 ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Random Game Page[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Sat, Apr 22, 2017 12:12 PM UTC:

I have replaced the Random Game Page link in the menu with a link to a new script at http://www.chessvariants.com/index/randgame.php, which will quickly select a random game page and redirect you there.


Ben Reiniger wrote on Tue, May 9, 2017 03:36 AM UTC:

This often doesn't work for me; I'd guess that /game/{itemid} URLs aren't forwarded(?) properly for member submitted pages.


🕸Fergus Duniho wrote on Tue, May 9, 2017 12:07 PM UTC:

In goto.php, I was transitioning from using the variable $ROOT to using the constant ROOT for the path the site is located in, and I hadn't completed it. So, it set ROOT at the beginning but was trying to use $ROOT in the code. It now uses ROOT throughout.

I plan to create /game/ or /rules/ semantic URLs in the future, but the semantic URLs that the randgame.php script sends to goto.php use /page/.


Ben Reiniger wrote on Wed, Jul 18, 2018 03:56 AM UTC:

Something has broken the Random Game script recently; I always get sent to the same Betza game, "csipgs Chess."  I can't think of any recent changes that should have affected this; that game lands somewhere around 600th out of 3000.  Are others experiencing the same issue?

(As an aside, concerning the first randomization query: removing the LIMIT 1 and running, I sometimes get no results and sometimes many.  I think the use of RAND() generates a different random number for each row, contrary to Fergus's comment in an earlier thread.  Maybe since then we've changed some setting on the database?  Anyway, while this could clean things up, I don't expect it's responsible for my always-Betza problem.)


🕸Fergus Duniho wrote on Wed, Jul 18, 2018 01:33 PM UTC:

I just tried it, and it repeatedly sent me to Chess++. Switching browsers to Firefox, it started repeatedly sending me to Shifting Chess. I think the issue is with page caching. It might be because this site uses Cloudflare for DNS, which offers page caching. But if that's the case, I might expect the same page to show up for different browsers, which is not happening. So, it might be browser caching. I can probably fix this by appending a uniqid to each link to the random game script.


🕸Fergus Duniho wrote on Wed, Jul 18, 2018 01:40 PM UTC:

Adding a uniqid to the script's URL has fixed the problem, but I'm going to look into how I can finetune caching with .htaccess.


6 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.