playtime

Your game should now be completely playable.

With care you should be able to end up with just 4 columns like this.

Occasionally you'll get stuck - just reload for another deal.


When you have had your fun, swap hats and try to break the program by doing unexpected clicks.

I wasn't able to break it but I did find one unsatisfactory aspect.


click me for what I found

function check_second(card) {
  var ok;
  if (empty(card)) {
    ok=true;
    if (klass(card)=='temp' && g_seq.length>1) {
      ok=false;
    }
  } else {
    ...
  }
  return ok;
}