
previous

page 19
next
function check_second(card) {
var ok;
if (klass(card)=='temp') {
ok=false;
if (empty(card)) ok=true;
} else {
if (last(card)) { // check for sequence
// convert strings to numbers
var n1=parseInt(card.id);
var v=g_click_card.id;
if (klass(g_click_card)=='temp') {
var i=v-100; var v=g_temp_col[i];
}
var n2=parseInt(v);
var n2=parseInt(g_click_card.id);
var arr=[n1,n2];
ok=check_sequence(arr);
} else { // is not last in column
ok=false;
}
}
return ok;
}
var ok;
if (klass(card)=='temp') {
ok=false;
if (empty(card)) ok=true;
} else {
if (last(card)) { // check for sequence
// convert strings to numbers
var n1=parseInt(card.id);
var v=g_click_card.id;
if (klass(g_click_card)=='temp') {
var i=v-100; var v=g_temp_col[i];
}
var n2=parseInt(v);
var n2=parseInt(g_click_card.id);
var arr=[n1,n2];
ok=check_sequence(arr);
} else { // is not last in column
ok=false;
}
}
return ok;
}
Wow! The game is almost playable and I'd like you to play it until you discover that there is still an issue left to deal with. And, no, I'm not refering to the third panel - that's a whole new Ball Game!
click me for the last (?) problem
Can you come up with a solution?
click me for my solution
Realistic programmers always call it the second last problem !
previous
next