PDA

View Full Version : Online Open Source Chess Clock



bobjames
05-04-2009, 02:27 AM
So, I've been idly working on this since Christmas ...

http://bobchess.doubtlesshouse.org.uk/BobChessClock.htm
http://code.google.com/p/bobchess/

It runs entirely in your web browser, no software to install, and you can download a copy to use off-line.

I'm looking for any feedback or comments from people - Thanks in advance.

Basil
05-04-2009, 07:04 AM
Are there any similar programs/scripts? Is this an original concept?
I like the idea.
Good luck. Congratulations.

Rincewind
05-04-2009, 09:35 AM
Are there any similar programs/scripts? Is this an original concept?
I like the idea.

As luck would have it I wrote a chess clock in 6502 machine code that ran on an Apple ][ back in the late 70s early 80s. I had a joystick with two large buttons which you could put beside the board which made it easy to use and I did use it to time social games from time to time.

I doubt I could find the code anymore. But I remember there were no timing operating system routines and it relied entirely on the 6502 CPU cycle clock and ensuring the program used the same number of cycles for black and white.

bobjames
05-04-2009, 07:16 PM
Are there any similar programs/scripts? Is this an original concept?
I like the idea.
Good luck. Congratulations.

Nothing original, just a check clock done right. I was looking for one over Christmas and either only found shareware clocks for money, which I thought was taking the piss, or really simple ones. For instance lots of the simple online ones are "press any key to switch", but it's possible to hit 2 keys in the heat of the moment so the clock switches back onto your time. So in mine each player has half the keyboard to avoid this.

Anyway, mine is actually fully working and usable (I hope) so you can have a try now and judge for yourself ... These days programming conditions are a bit easier than Rincewind had ... :-)

Basil
05-04-2009, 08:07 PM
I think you can have a point for talking so directly.
I think you can have a point for making the clock shareware.
I think you can have a point for doing such a good job (I just had a go).
I think you can have a point for the double-click.
I think you can have a point for the red zone.
I think you can have five points for 'taking the piss'.

I reckon 10 points makes you you a winner. Very nice. :clap:

Rincewind
05-04-2009, 09:41 PM
Anyway, mine is actually fully working and usable (I hope) so you can have a try now and judge for yourself ... These days programming conditions are a bit easier than Rincewind had ... :-)

On the plus side the Apple ][ OS was not multitasking. So I was sure nothing was getting the CPU except my program. :)

bobjames
07-04-2009, 04:34 PM
WooHoo! Thank you! :D

Although I will have to be a pedant and point out Open Source isn't the same as Shareware - http://www.jarofgreen.co.uk/opensource.pdf

Anyway, any improvements/bugs/problems ppl have, let me know ...

SHump
23-04-2009, 02:33 PM
Just a small point - when used in the 'add time once a move is made' for the Bronstein mode, the time never exceeded the starting time (of say 5 minutes) - but this works fine for Fisher mode.. At the beginning of a game (usually), using chess clocks, they do get to have times more than the starting time. I do not know if I have usually used real clocks in Fisher or Bronstein mode either (they are just there to use!) - so I do not know much about the difference - so if you tell me that your clock is working fine in Bronstein mode, I will believe it.

But apart from that - it is a great idea!

bobjames
25-04-2009, 08:30 PM
Actually, I have to admit to only using mechanical chess clocks in normal mode. I just read about Bronstein and Fischer online and thought they sounded interesting.

From my understanding of Bronstein mode it's working fine. You only get added on the time you use, up to a point, say 5 seconds. So if you take 7 seconds for your move, you get 5 seconds added on. If you take 2 seconds you get 2 seconds. So it would never get above the starting time, only go down.

It seemed more interesting than Fischer, in Fischer you can "bank" time during the fast moves. In Bronstein you can't and you just have to keep hurtling on at breakneck speed ....

If I've misunderstood either mode, someone please tell me.

And if someone who's better at words can rewrite the instructions on the chess clock to make it clearer, please, have a go! I'm no good at words.

Thanks.

eclectic
25-04-2009, 08:34 PM
i thought bronstein mode meant that you had for instance 5 sec of "free time" to make a move before your clock counted down

bobjames
25-04-2009, 08:37 PM
Hmmm ... which is almost what happens on mine, except if you started the move with 2 seconds but took 3 seconds it would expire you when it shouldn't really ... hmmmm ... *goes away to ponder*

bobjames
26-04-2009, 02:30 AM
According to http://en.wikipedia.org/wiki/Game_clock Bronstein delay and Simple delay are different. I've done both of them and I'll release it as soon as I get round to testing it in Internet Explorer.

(Those of you with FireFox and a passing knowledge of Google Code can fish it out of http://code.google.com/p/bobchess/source/browse/trunk/BobChessClock.htm )

bobjames
04-05-2009, 05:04 AM
So I put this up on Thursday but didn't have time to post, was away, sorry .... http://bobchess.doubtlesshouse.org.uk/BobChessClock.htm