jegi / chessclock-9000

A simple but effective HTML + JavaScript chess clock and timer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

See the online version at http://chessclock.jottit.com

Story:

Four friends, stuck in a hotel room one evening, with rain pouring down outside, a plane flight leaving early the next morning, and nothing to do in the mean time, found themselves with two chessboards.

“Aha!” they thought, “we’ll play [[bughouse]]!”

Unfortunately, bughouse requires chess clocks, and they had none.

“Aha!” they thought, “we’ll make our own chess clocks, using only our laptops and our wits!”

And so, in the next few minutes, they coded up a couple of JavaScript/HTML chess clocks… and proceeded to spend the night on a few dozen epic bughouse games.

A bit of polishing later, one of them looks like this.

Instructions:

To use the chess clock:

  • Right player move: press any letter on the right side of the keyboard.
  • Left player move: press any letter on the left side of the keyboard.
  • Pause: spacebar
  • Longer game: + or = keys
  • Shorter game: - or _ keys
  • Reset clocks: escape

On an iPhone:

(This might be broken; it's been a couple of years since I looked)

  • Right player move: click the right side of the clock.
  • Left player move: click the left side of the clock.
  • Pause: double-click anywhere
  • Change time: hope you like 5 minute games!
  • Reset clocks: try refreshing the page.

About

A simple but effective HTML + JavaScript chess clock and timer

License:Other


Languages

Language:HTML 100.0%