jscarmona
12/7/2016 - 1:58 PM

Chess Timer Test

Chess Timer Test

Front End Project

This project should take approximately 2 to 5 hours to complete and help us assess your JavaScript knowledge and development style.

Business Requirements

You are apart of a brand new startup that specializes in chess! You’ve been assigned a task to make a speed timer when a game of chess is happening. The business requirements are as follows:

  • There needs to be two clocks, one for each player.
  • Each clock has one button.
  • By pressing your button you start the other players clock and stop yours if it’s counting down (the opposite of this is also true).
  • Each clock starts at 4 minutes and counts down until one of them reaches 0.
  • When the application loads, no clocks will be active (each clock will be at 4 minutes).
  • When a clock reaches 0, reset each clock back to 4 minutes and award the game to the other player (you can use an alert or the console).
  • There is a reset button that can reset both clocks back to 4 minutes and set the buttons back to their original state.

Technical Requirements

  • Make sure the code is as reusable as possible.
  • Please keep the use of third party libraries to only tools needed for bundling.
  • If you use ES6 you must supply us with your own compilation script.
  • Feel free to use Git if you’d like.
  • There should be one index.html file for us to load.

Please provide us a README with your assumptions or other notes that you would like us to know. Your code will be reviewed in modern Chrome, Firefox and Safari browsers.

Submission Requirements

A link to a hosted git repository or tarball of the git repository of the finished project. Please email the link or zip to jcarmona@ashleyfurniture.com