/grid_server

Coding exercise using websockets

Primary LanguagePython

Coding Challenge

  1. Given a number suffixed in a URL, render a grid of size n, e.g. http://localhost/n
  2. Clicking an empty square adds an 'x' to it. Clicking a square with an x toggles it back to blank.
  3. X's are draggable to any other square in the grid. If an x is dropped in a square already containing an x, the drag is canceled.
  4. Grid changes are synced in real time across all other clients accessing the same URL.
  5. Must work on mobile with touch screens.
  6. No third party javascript libraries.