Code Monkey home page Code Monkey logo

chessclock-9000's Introduction

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.

chessclock-9000's People

Contributors

jrus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.