Three Best Chess Short Stories

Best Chess

To round out discussing Best Chess, here are a couple of other stray thoughts I’ve thought while making it and playing it over the last week or so.

View source. I wonder how many people who play Best Chess will ever check up on it by doing a ‘view source’ on the webpage. The entire source of the game is just sitting there, unobfuscated in the index.html file, so you can literally see what the page is running (and even understand it if you know some JavaScript or a related language). This reminds me of Leaderboarder in some ways, and the idea of players intervening or at least engaging with the underlying code of the game they’re playing, whether it’s to better understand the game or to potentially mess with it. Will this become more of a thing as more and more games are written in JavaScript etc.? Will there be more obfuscation?

Does it work? An importantly weird element of writing a chess-solving AI like this is that you can’t actually test it. Given that it’s objective is to solve chess, and given that’s impossible (time-wise), you’ll never really know whether it works or not. That was a constant strange feeling that led me to repeatedly ‘prove’ to myself that the approach I was taking (to implement the depth-first search) was legitimate and would solve chess, given enough time. (Since release various people keep querying whether it works, whether it would run out of space, etc., constantly shaking me to my core.)

I solved chess! One embarrassing story from development was when I managed to think (for about 2 or 3 minutes) that the game might solve chess randomly after running for only a short time because it would just stumble into the solution. Rilla and I then postulated an issue of Science with me on the cover and the headline ‘Idiot Solves Chess’ (me being the idiot). But then of course I recalled that this algorithm (or any) can’t actually solve chess during a partial run like that – the whole point is you have to examined all the options, which takes almost forever. (The follow-up Science cover was going to be ‘Idiot is Just an Idiot After All’.)

That’s it. I’m moving on to my next thing, called… BREAKSOUT!

31 July 2015
← next words previous words →