Back to ChessNonsense

Thursday, March 23, 2006

The Circles and Time

Hello. I have some new development on the way (because I like to write code... be it good or bad). The first piece of code produces these images that I've been using on my page, of an entire board. Let us say, for instance, we take the fen string for the beginning board:


and we wanted to make an image of it. We would simply use the following url: in px).

so, for this fen, using the following code: <img src="" alt="demo board" /> We see:

demo board
You also have the optional cgi variable of 'as', which will set the board to black or white point of view, just by putting &as=w or &as=b at the end of the above url data.

Now that this is covered, I am continuing on my circles, and not playing as much chess as I want. This is alright because I believe that I am learning a lot and the problems, while difficult and while I'm not very good at them yet, are getting easier. Because I haven't played as much as I want to, I don't know how good my advancement is just yet, but I'll wait until I'm done to find out because this practice is taking a lot out of me to begin with already.

Well, that's all I got for you today, other than the fact that I'm working on an online ajax wrapper for a pgndb as well, and we'll see how that goes.


At 3/24/2006 9:22 AM, Blogger Blue Devil Knight said...

That will be useful code!

At 3/24/2006 11:13 AM, Blogger psalcido said...

If you actually want the php file, too, I can make it available. There are some bugs in it (doesn't check for valid fen, can look funny at resolutions where res%8 != 0) but I'm not too concerned with that.

At 4/02/2006 5:02 AM, Blogger King of the Spill said...

Fantastic idea - it might be nice to have optional variables for squares colors. Congratulations on completing circle 3!

At 4/05/2006 12:50 PM, Blogger psalcido said...

That's a plan... unfortunately, the piece / square combo is a solid image. I'll have to make empty bg images for each one.

At 4/29/2012 10:32 AM, Blogger Schaakpraat said...

The image has disappeared.
You may be interested in the method to publish chess games and chess positions used on Chesspublishing.
I also use it on my own chess site 'Schaakpraat' (in Dutch).


Post a Comment

<< Home