<html>
<head>
<title>Dominoes Block Game - RJM Programming - August, 2026</title>
<meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=0.1, maximum-scale=8, user-scalable=yes' >
<style>
#seven1 img { padding: 3 3 3 3; }
#seven2 img { padding: 3 3 3 3; }
#thstock img { padding: 3 3 3 3; }
button { padding 3 3 3 3; border-radius: 20px; }
</style>
<script type=text/javascript src='/beep.js?iam=song_lyric_faux_pas.html&rand=76576533' data-defer=defer></script>
<script type=text/javascript>
var sbutih1='', sbutih2='';
var symbolize='%3Cimg%20onclick%3D%22gostock(this)%3B%22%20style%3D%22width%3A80px%3Bfilter%3Abrightness(0)%3B%22%20class%3D%22stock%22%20id%3D%22';
var symbolis='%7E';
var firstplayeris=0, isplayer1go=false, isplayer2go=false;
var thetilearr=[], player1arr=[], player2arr=[], stockarr=[];
var sofara='', ij=0, was1ih='', was2ih='', hastohave=[];
var pip1cnt=0, pip2cnt=0, winner='', winnerby=0, thescore1=0, thescore2=0;
var bellzero=' ', winnerblurb='', everyfour=-1;
var iam='', iamcontact='', iamleft=false, youare='', youarecontact='', youareleft=false, allbuthash='', brhuh='';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i) && eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
everyfour=4;
}
function brmaybe(inid) {
var inidih='', inidiharr=[], outinidih='';
if (everyfour > 0) {
if (document.getElementById('' + inid)) {
brhuh='';
inidih=document.getElementById('' + inid).innerHTML;
inidiharr=inidih.split('<img');
for (var ioh=1; ioh<inidiharr.length; ioh++) {
outinidih+='<img' + inidiharr[ioh];
if (inid.indexOf('stock') != -1) {
if (eval(ioh % 7) == 0 && ioh == eval(-1 + inidiharr.length) && inidiharr[ioh].indexOf('<br') == -1) { brhuh='<br>'; }
} else {
if (eval(ioh % 4) == 0 && ioh == eval(-1 + inidiharr.length) && inidiharr[ioh].indexOf('<br') == -1) { brhuh='<br>'; }
}
}
}
}
return '' + inid;
}
function sendtoone() {
var tih=encodeURIComponent(document.getElementById('mytable').innerHTML);
if (document.getElementById('name1').innerText.indexOf('[') != -1 && document.getElementById('name1').innerText.indexOf(']') != -1) {
//alert('send to ' + document.getElementById('name1').innerText);
var youarecontact=document.getElementById('name1').innerText.split('[')[1].split(']')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=(document.getElementById('aemail').href.split('body=')[0] + 'body=').replace(':?', ':' + youarecontact + '?').replace('&body=', '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0])));
document.getElementById('aemail').click();
} else if (youarecontact.trim() != '' && youarecontact.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
//while (tih.indexOf(symbolize) != -1) {
// tih=tih.replace(symbolize,symbolis);
//}
document.getElementById('asms').href=(document.getElementById('asms').href.split('body=')[0] + 'body=').replace(':' + youarecontact, ':').replace(':', ':' + youarecontact + '') + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + tih);
document.getElementById('makenum').value=document.getElementById('mytable').innerHTML;
document.getElementById('sifp').click();
setTimeout(function(){ document.getElementById('ifp').src='/About_Us.html'; document.getElementById('makenum').value=''; if (eval('' + document.getElementById('asms').href.length) > 700 && document.getElementById('asms').href.indexOf('tbody') != -1) { document.getElementById('asms').href=document.getElementById('asms').href.split('tbody')[0] + 't' + document.getElementById('makenum').title; } document.getElementById('asms').click(); }, 8000);
}
}
}
function sendtotwo() {
var tih=encodeURIComponent(document.getElementById('mytable').innerHTML);
if (document.getElementById('name2').innerText.indexOf('[') != -1 && document.getElementById('name2').innerText.indexOf(']') != -1) {
//alert('send to ' + document.getElementById('name2').innerText);
var youarecontact=document.getElementById('name2').innerText.split('[')[1].split(']')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=(document.getElementById('aemail').href.split('body=')[0] + 'body=').replace(':?', ':' + youarecontact + '?').replace('&body=', '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0])));
document.getElementById('aemail').click();
} else if (youarecontact.trim() != '' && youarecontact.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
//while (tih.indexOf(symbolize) != -1) {
// tih=tih.replace(symbolize,symbolis);
//}
document.getElementById('asms').href=(document.getElementById('asms').href.split('body=')[0] + 'body=').replace(':' + youarecontact, ':').replace(':', ':' + youarecontact + '') + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&winnerblurb=' + encodeURIComponent(winnerblurb) + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#' + tih);
document.getElementById('makenum').value=document.getElementById('mytable').innerHTML;
document.getElementById('sifp').click();
setTimeout(function(){ document.getElementById('ifp').src='/About_Us.html'; document.getElementById('makenum').value=''; if (eval('' + document.getElementById('asms').href.length) > 700 && document.getElementById('asms').href.indexOf('tbody') != -1) { document.getElementById('asms').href=document.getElementById('asms').href.split('tbody')[0] + 't' + document.getElementById('makenum').title; } document.getElementById('asms').click(); }, 8000);
}
}
}
function newremotegame() { //(blurb) {
var huhask=prompt((location.search.split('winnerblurb=')[1] ? decodeURIComponent(location.search.split('winnerblurb=')[1].split('&')[0]) : '').replace('OK starts a new game', 'OK starts a new collaborative game'), 'OK');
if (huhask) {
if (huhask == 'OK' && allbuthash != '') {
location.href=allbuthash.replace('rand=', 'rand=8').replace(/\&pip/g, 'pap');
} else if (huhask != 'OK' && allbuthash != '') {
location.href=document.URL.split('?')[0].split('#')[0];
} else {
location.href='./dominoes_block_game.html?score1=' + encodeURIComponent(document.getElementById('score1').innerHTML.replace('Score: ','')) + '&score2=' + encodeURIComponent(document.getElementById('score2').innerHTML.replace('Score: ','')) + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML);
}
}
}
function newgame() {
var huhask=confirm('Congratulations, ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.');
if (huhask) {
if (allbuthash != '') {
location.href=allbuthash.replace('rand=', 'rand=8').replace(/\&pip/g, 'pap');
} else {
location.href='./dominoes_block_game.html?score1=' + encodeURIComponent(document.getElementById('score1').innerHTML.replace('Score: ','')) + '&score2=' + encodeURIComponent(document.getElementById('score2').innerHTML.replace('Score: ','')) + '&name1=' + encodeURIComponent(document.getElementById('name1').innerHTML) + '&name2=' + encodeURIComponent(document.getElementById('name2').innerHTML);
}
}
}
function objoneit(oneoh) {
if (oneoh.indexOf('dominoes_') != -1) {
pip1cnt+=eval('' + oneoh.split('dominoes_')[1].split('_')[0]);
pip1cnt+=eval('' + oneoh.split('dominoes_')[1].split('_')[1].substring(0,1));
}
return oneoh;
}
function objtwoit(twooh) {
if (twooh.indexOf('dominoes_') != -1) {
pip2cnt+=eval('' + twooh.split('dominoes_')[1].split('_')[0]);
pip2cnt+=eval('' + twooh.split('dominoes_')[1].split('_')[1].substring(0,1));
}
return twooh;
}
function endgameone(oneih) {
var imgcnt=eval(-1 + oneih.split('<img').length);
var nonecnt=eval(-1 + oneih.split('none;').length);
if (eval(imgcnt - nonecnt) <= 0) {
document.getElementById('score1').innerHTML='Score: ' + eval(thescore1 + pip2cnt);
winner=document.getElementById('name1').innerHTML;
winnerby=pip2cnt;
winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.';
sendtotwo();
setTimeout(newgame, 5000);
}
return oneih;
}
function endgametwo(twoih) {
var imgcnt=eval(-1 + twoih.split('<img').length);
var nonecnt=eval(-1 + twoih.split('none;').length);
if (eval(imgcnt - nonecnt) <= 0) {
document.getElementById('score2').innerHTML='Score: ' + eval(thescore2 + pip1cnt);
winner=document.getElementById('name2').innerHTML;
winnerby=pip1cnt;
winnerblurb='Congratulations should go to ' + winner + '! You scored ' + winnerby + ' points. OK starts a new game.';
sendtoone();
setTimeout(newgame, 5000);
}
return twoih;
}
function inithave() {
var mlv=0, mrv=0;
var wasthih=document.getElementById('thtop').innerHTML;
if (eval('' + hastohave.length) == 0) {
if (wasthih.indexOf('dominoes_') != -1) {
if (wasthih.split('dominoes_')[0].indexOf('(-1)') != -1) {
mlv=eval('' + wasthih.split('dominoes_')[1].split('_')[1].substring(0,1));
} else {
mlv=eval('' + wasthih.split('dominoes_')[1].split('_')[0]);
}
hastohave.push(mlv);
wasthih='<img' + wasthih.split('<img')[eval(-1 + wasthih.split('<img').length)];
if (wasthih.indexOf('(-1)') == -1) {
mrv=eval('' + wasthih.split('dominoes_')[1].split('_')[1].substring(0,1));
} else {
mrv=eval('' + wasthih.split('dominoes_')[1].split('_')[0]);
}
hastohave.push(mrv);
}
}
}
function goone(iobj) {
if (!isplayer1go && !isplayer2go) {
isplayer1go=true;
}
var klv=-1, krv=-1;
var mlv=-1, mrv=-1;
var wasthih=document.getElementById('thtop').innerHTML;
var atend=true, atstart=false, flipit=false;
//document.getElementById('myh4').innerHTML='';
if (iobj.id.indexOf('dominoes_') != -1) {
mlv=eval('' + iobj.id.split('dominoes_')[1].split('_')[0]);
mrv=eval('' + iobj.id.split('dominoes_')[1].split('_')[1].substring(0,1));
}
if (eval('' + hastohave.length) > 0) {
atend=false;
var huhs=document.getElementById('thtop').innerHTML.split('dominoes_'); //.replace(/sdominoes/g,'pdominoes').replace(/\ id\=\"s/g,' id="').split(' id="pdominoes_');
for (var ikl=1; ikl<huhs.length; ikl++) {
if (!atstart && !atend) {
if (ikl > 1 && ikl < eval(-1 + huhs.length)) {
klv=-1;
krv=-1;
} else {
if (huhs[eval(-1 + ikl)].indexOf('(-1)') != -1) {
krv=eval('' + huhs[ikl].split('_')[0]);
klv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
} else {
klv=eval('' + huhs[ikl].split('_')[0]);
krv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
}
//if (krv == mlv && ikl == eval(-1 + huhs.length)) {
if ((krv == mlv || mlv == klv) && ikl == eval(-1 + huhs.length)) { // mlv=1 mrv=3 klv=1 krv=5
//if (('_' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) == 0) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) == 0) {
flipit=false;
atstart=false;
atend=true;
pip1cnt-=mlv;
pip1cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('01:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 1?' + iobj.id;
}
} else if ((krv == mrv || klv == mrv) && ikl == eval(-1 + huhs.length)) { // mlv=4 mrv=6 klv=1 krv=6
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) != -1) {
flipit=true;
atstart=false;
atend=true;
pip1cnt-=mlv;
pip1cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('03:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 2?' + iobj.id;
}
} else if (klv == mrv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (iobj.id.split('dominoes_')[1].indexOf('_' + hastohave[0]) != -1) {
flipit=false;
atstart=true;
atend=false;
pip1cnt-=mlv;
pip1cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('02:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 3?' + iobj.id;
}
} else if (klv == mlv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[0]) != -1) {
flipit=true;
atstart=true;
atend=false;
pip1cnt-=mlv;
pip1cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('04:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 4?' + iobj.id;
}
//} else {
// document.getElementById('myh4').innerHTML+=(' one:' + ikl + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv + ' hastohavee=' + hastohave[0] + ',' + hastohave[1]);
}
}
}
}
} else {
hastohave.push(mlv);
hastohave.push(mrv);
}
if (isplayer1go && (atend || atstart)) {
if (flipit && atend) {
hastohave[1]=mlv;
document.getElementById('thtop').innerHTML+=iobj.outerHTML.replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);');
} else if (flipit) {
hastohave[0]=mrv;
document.getElementById('thtop').innerHTML=iobj.outerHTML.replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);') + wasthih;
} else if (atstart) {
hastohave[0]=mlv;
document.getElementById('thtop').innerHTML=iobj.outerHTML.replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','') + wasthih;
} else {
hastohave[1]=mrv;
document.getElementById('thtop').innerHTML+=iobj.outerHTML.replace(' class="player1"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','');
}
iobj.style.display='none';
document.getElementById('buts2').innerHTML='<button id=reveal2>Click a Domino below or from Stock to continue ...</button>';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
if (useiourbeep) { beep(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
isplayer1go=false;
isplayer2go=false;
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer2go=true;
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtotwo();
}
}, 10000);
}
}
function gotwo(iobj) {
if (!isplayer1go && !isplayer2go) {
isplayer2go=true;
}
var klv=-1, krv=-1;
var mlv=-1, mrv=-1;
var atend=true, atstart=false, flipit=false;
var wasthih=document.getElementById('thtop').innerHTML;
var atend=true, atstart=false, flipit=false;
//document.getElementById('myh4').innerHTML='';
if (iobj.id.indexOf('dominoes_') != -1) {
mlv=eval('' + iobj.id.split('dominoes_')[1].split('_')[0]);
mrv=eval('' + iobj.id.split('dominoes_')[1].split('_')[1].substring(0,1));
}
if (eval('' + hastohave.length) > 0) {
atend=false;
var huhs=document.getElementById('thtop').innerHTML.split('dominoes_'); //.replace(/sdominoes/g,'pdominoes').replace(/\ id\=\"s/g,' id="').split(' id="pdominoes_');
for (var ikl=1; ikl<huhs.length; ikl++) {
if (!atstart && !atend) {
if (ikl > 1 && ikl < eval(-1 + huhs.length)) {
klv=-1;
krv=-1;
} else {
if (huhs[eval(-1 + ikl)].indexOf('(-1)') != -1) {
krv=eval('' + huhs[ikl].split('_')[0]);
klv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
} else {
klv=eval('' + huhs[ikl].split('_')[0]);
krv=eval('' + huhs[ikl].split('_')[1].substring(0,1));
}
if ((krv == mlv || mlv == klv) && ikl == eval(-1 + huhs.length)) { // mlv=1 mrv=3 klv=1 krv=5
//if (('_' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) == 0) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) == 0) {
flipit=false;
atstart=false;
atend=true;
pip2cnt-=mlv;
pip2cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('1:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 1?';
}
//} else if (krv == mrv && ikl == eval(-1 + huhs.length)) {
} else if ((krv == mrv || klv == mrv) && ikl == eval(-1 + huhs.length)) { // mlv=2 mrv=5 klv=5 krv=6
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[1]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[1]) != -1) {
flipit=true;
atstart=false;
atend=true;
pip2cnt-=mlv;
pip2cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('3:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 2?';
}
} else if (klv == mrv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (iobj.id.split('dominoes_')[1].indexOf('_' + hastohave[0]) != -1) {
flipit=false;
atstart=true;
atend=false;
pip2cnt-=mlv;
pip2cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('2:am not flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 3?';
}
} else if (klv == mlv && ikl == 1) {
//if (('' + huhs[ikl].split(' ')[0]).indexOf('_' + hastohave[0]) != -1) {
if (('_' + iobj.id.split('dominoes_')[1]).indexOf('_' + hastohave[0]) != -1) {
flipit=true;
atstart=true;
atend=false;
pip2cnt-=mlv;
pip2cnt-=mrv;
//document.getElementById('myh4').innerHTML+=('4:am flipping' + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv);
//} else {
//document.getElementById('myh4').innerHTML+=' 4?';
}
//} else {
// document.getElementById('myh4').innerHTML+=(' two:' + ikl + ' ms are ' + mlv + '.' + mrv + ' ks are ' + klv + '.' + krv + ' hastohave=' + hastohave[0] + ',' + hastohave[1]);
}
}
}
}
} else {
hastohave.push(mlv);
hastohave.push(mrv);
}
if (isplayer2go && (atend || atstart)) {
if (flipit && atend) {
hastohave[1]=mlv;
document.getElementById('thtop').innerHTML+=iobj.outerHTML.replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);');
} else if (flipit) {
hastohave[0]=mrv;
document.getElementById('thtop').innerHTML=iobj.outerHTML.replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','').replace(' style="', ' style="transform:scaleX(-1);') + wasthih;
} else if (atstart) {
hastohave[0]=mlv;
document.getElementById('thtop').innerHTML=iobj.outerHTML.replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','') + wasthih;
} else {
hastohave[1]=mrv;
document.getElementById('thtop').innerHTML+=iobj.outerHTML.replace(' class="player2"', ' class="played"').replace(' id="s', ' id="').replace(' id="', ' id="p').replace(' onclick="', ' data-onclick="').replace('filter:brightness(0);','');
}
iobj.style.display='none';
document.getElementById('buts1').innerHTML='<button id=reveal1>Click a Domino below or from Stock to continue ...</button>';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
if (useiourbeep) { beeptwo(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
isplayer1go=false;
isplayer2go=false;
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer1go=true;
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtoone();
}
}, 10000);
}
}
function gostock(iobj) {
if (!isplayer1go && !isplayer2go) {
if (document.getElementById('reveal1')) {
if (document.getElementById('reveal1').innerHTML.indexOf(' turn away') != -1) {
isplayer2go=true;
}
}
if (document.getElementById('reveal2')) {
if (document.getElementById('reveal2').innerHTML.indexOf(' turn away') != -1) {
isplayer1go=true;
}
}
}
if (isplayer1go) {
document.getElementById('seven1').innerHTML+=objoneit(iobj.outerHTML).replace(/filter\:brightness\(0\)\;/g,'').replace(' id="',' id="s').replace(' class="stock"', ' class="player1"').replace('gostock','goone');
iobj.style.display='none';
isplayer1go=false;
isplayer2go=false;
document.getElementById('buts2').innerHTML='<button id=reveal2>Click a Domino below or from Stock to continue ...</button>';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
if (useiourbeep) { beep(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer2go=true;
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtotwo();
}
}, 10000);
} else if (isplayer2go) {
document.getElementById('seven2').innerHTML+=objtwoit(iobj.outerHTML).replace(/filter\:brightness\(0\)\;/g,'').replace(' id="',' id="s').replace(' class="stock"', ' class="player2"').replace('gostock','gotwo');
iobj.style.display='none';
isplayer1go=false;
isplayer2go=false;
document.getElementById('buts1').innerHTML='<button id=reveal1>Click a Domino below or from Stock to continue ...</button>';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
if (useiourbeep) { beeptwo(); }
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
isplayer1go=true;
document.getElementById('seven2').innerHTML=was2ih.replace(/filter\:brightness\(0\)\;/g,'').replace(/\ style\=\"/g, ' style="filter:brightness(0);');
document.getElementById('seven1').innerHTML=was1ih.replace(/filter\:brightness\(0\)\;/g,'');
if (iamleft || youareleft) {
sendtoone();
}
}, 10000);
}
}
function reveal(obut) {
var huhlen=0;
if (firstplayeris == 0) {
firstplayeris=eval(obut.id.replace('reveal',''));
if (firstplayeris == 1) {
isplayer1go=true;
isplayer2go=false;
document.getElementById(obut.id.replace('1','2')).innerHTML='Please turn away now ...';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
if (useiourbeep) { beeptwo(); }
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
document.getElementById('buts1').innerHTML='<button id=reveal1>Click a Domino below to start ...</button>';
document.getElementById('buts2').innerHTML='<button style="border:4px dashed yellow;" id=reveal2>Please turn away now ...</button>';
//beep();
huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven1').innerHTML+=brhuh + '<img onclick="goone(this);" style=width:80px; class="player1" id="' + player1arr[ij] + '" src="' + player1arr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven2').innerHTML+=brhuh + '<img onclick="gotwo(this);" style=width:80px;filter:brightness(0); class="player2" id="' + player2arr[ij] + '" src="' + player2arr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split('<img').length));
for (ij=0; ij<stockarr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 7) == 0) { brhuh='<br>'; }
}
document.getElementById('thstock').innerHTML+=brhuh + '<img onclick="gostock(this);" style=width:80px;filter:brightness(0); class="stock" id="' + stockarr[ij] + '" src="' + stockarr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
//if (iamleft || youareleft) {
// sendtotwo();
//}
}, 10000);
} else if (firstplayeris == 2) {
isplayer1go=false;
isplayer2go=true;
document.getElementById(obut.id.replace('2','1')).innerHTML='Please turn away now ...';
document.getElementById('seven1').innerHTML='';
document.getElementById('seven2').innerHTML='';
if (useiourbeep) { beep(); }
document.body.style.cursor='progress';
setTimeout(function(){
document.body.style.cursor='pointer';
document.getElementById('buts2').innerHTML='<button id=reveal2>Click a Domino below to start ...</button>';
document.getElementById('buts1').innerHTML='<button style="border:4px dashed yellow;" id=reveal1>Please turn away now ...</button>';
//beep();
huhlen=eval(-1 + eval('' + document.getElementById('seven2').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven2').innerHTML+=brhuh + '<img onclick="gotwo(this);" style=width:80px; class="player2" id="' + player2arr[ij] + '" src="' + player2arr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('seven1').innerHTML.split('<img').length));
for (ij=0; ij<player1arr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 4) == 0) { brhuh='<br>'; }
}
document.getElementById('seven1').innerHTML+=brhuh + '<img onclick="goone(this);" style=width:80px;filter:brightness(0); class="player1" id="' + player1arr[ij] + '" src="' + player1arr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
huhlen=eval(-1 + eval('' + document.getElementById('thstock').innerHTML.split('<img').length));
for (ij=0; ij<stockarr.length; ij++) {
brhuh='';
if (everyfour > 0) {
if (eval(huhlen % 7) == 0) { brhuh='<br>'; }
}
document.getElementById('thstock').innerHTML+=brhuh + '<img onclick="gostock(this);" style=width:80px;filter:brightness(0); class="stock" id="' + stockarr[ij] + '" src="' + stockarr[ij] + '.png"></img>';
huhlen++;
brhuh='';
}
was1ih=endgameone(document.getElementById('seven1').innerHTML);
was2ih=endgametwo(document.getElementById('seven2').innerHTML);
//if (iamleft || youareleft) {
// sendtoone();
//}
}, 10000);
}
}
}
function turnawaynotfrom(obut) {
if (obut.id.indexOf('1') != -1) {
document.getElementById(obut.id.replace('1','2')).innerHTML='Please turn away now ...';
obut.innerHTML='Reveal Your Dominoes Below ...';
} else if (obut.id.indexOf('2') != -1) {
document.getElementById(obut.id.replace('2','1')).innerHTML='Please turn away now ...';
obut.innerHTML='Reveal Your Dominoes Below ...';
}
}
function deal() {
var lv=0, rv=0;
var topmore='<fo' + 'rm ' + document.body.innerHTML.split('<fo' + 'rm ')[1];
if (document.URL.indexOf('#' + encodeURIComponent('<h1')) != -1 || document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<h1')) != -1 || document.URL.indexOf('#' + encodeURIComponent('<t')) != -1 || document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (document.URL.indexOf('#' + encodeURIComponent('<t')) != -1) {
if (document.URL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) >= '0' && document.URL.split('#' + encodeURIComponent('<t'))[1].substring(0,1) <= '9') {
//alert(document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1]);
document.getElementById('ifp').src=document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=document.URL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(document.URL.substring(document.URL.indexOf(encodeURIComponent('<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>';
}
} else if (document.URL.indexOf('#' + encodeURIComponent(String.fromCharCode(10) + '<t')) != -1) {
if (document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) >= '0' && document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1].substring(0,1) <= '9') {
//alert(document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<t'))[1]);
document.getElementById('ifp').src=document.URL.split('.htm')[0] + '.php?intnum=' + document.URL.split('#' + encodeURIComponent('<t'))[1];
} else {
allbuthash=document.URL.split('#')[0];
document.getElementById('mytable').innerHTML='' + decodeURIComponent(document.URL.substring(document.URL.indexOf(encodeURIComponent(String.fromCharCode(10) + '<t'))).replace(/\%7E/g,symbolize)) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>';
}
} else if (document.URL.indexOf('#' + encodeURIComponent('<h1')) != -1) {
allbuthash=document.URL.split('#')[0];
document.body.innerHTML='<h1' + decodeURIComponent(document.URL.split('#' + encodeURIComponent('<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>';
} else {
allbuthash=document.URL.split('#')[0];
document.body.innerHTML='<h1' + decodeURIComponent(document.URL.split('#' + encodeURIComponent(String.fromCharCode(10) + '<h1'))[1]) + topmore; //'<a target="_top" id=aemail style=display:none; href="mailto:?subject=Dominoes%20Game&body=">Email</a><a target="_top" id=asms style=display:none; href="sms:&body=">SMS</a>';
}
thescore1=eval('' + document.getElementById('score1').innerHTML.replace('Score: ',''));
thescore2=eval('' + document.getElementById('score2').innerHTML.replace('Score: ',''));
if (document.URL.indexOf('winnerblurb=') != -1 && (document.URL + '&').indexOf('winnerblurb=&') == -1) {
//alert(87);
setTimeout(newremotegame, 3000);
} else {
//alert(487);
thetilearr.push('dominoes.png');
inithave();
}
pip1cnt=(location.search.split('pip1cnt=')[1] ? decodeURIComponent(location.search.split('pip1cnt=')[1].split('&')[0]) : pip1cnt);
pip2cnt=(location.search.split('pip2cnt=')[1] ? decodeURIComponent(location.search.split('pip2cnt=')[1].split('&')[0]) : pip2cnt);
}
var spare='';
spare=(location.search.split('iam=')[1] ? decodeURIComponent(location.search.split('iam=')[1].split('&')[0]) : '');
if (spare != '') { iam=spare; if (spare.indexOf('[') != -1) { iamcontact=spare.split('[')[1].split(']')[0]; } }
spare=(location.search.split('iamleft=')[1] ? decodeURIComponent(location.search.split('iamleft=')[1].split('&')[0]) : 'false');
if (spare == 'true') { iamleft=true; }
spare=(location.search.split('youare=')[1] ? decodeURIComponent(location.search.split('youare=')[1].split('&')[0]) : '');
if (spare != '') { youare=spare; if (spare.indexOf('[') != -1) { youarecontact=spare.split('[')[1].split(']')[0]; } }
spare=(location.search.split('youareleft=')[1] ? decodeURIComponent(location.search.split('youareleft=')[1].split('&')[0]) : 'false');
if (spare == 'true') { youareleft=true; }
if (allbuthash == '' && (iamleft || youareleft)) {
if (iam.indexOf(']') != -1) {
document.getElementById('name2').innerHTML=iam.split(']')[0] + ']';
} else {
document.getElementById('name2').innerHTML=iam;
}
if (youare.indexOf(']') != -1) {
document.getElementById('name1').innerHTML=youare.split(']')[0] + ']';
nameone(document.getElementById('name1'));
} else {
document.getElementById('name1').innerHTML=youare;
}
}
thescore1=(location.search.split('score1=')[1] ? eval(location.search.split('score1=')[1].split('&')[0]) : thescore1);
thescore2=(location.search.split('score2=')[1] ? eval(location.search.split('score2=')[1].split('&')[0]) : thescore2);
document.getElementById('score1').innerHTML='Score: ' + thescore1;
document.getElementById('score2').innerHTML='Score: ' + thescore2;
document.getElementById('name1').innerHTML=(location.search.split('name1=')[1] ? decodeURIComponent(location.search.split('name1=')[1].split('&')[0]) : document.getElementById('name1').innerHTML);
document.getElementById('name2').innerHTML=(location.search.split('name2=')[1] ? decodeURIComponent(location.search.split('name2=')[1].split('&')[0]) : document.getElementById('name2').innerHTML);
sbutih1=document.getElementById('buts1').innerHTML;
sbutih2=document.getElementById('buts2').innerHTML;
if (eval('' + thetilearr.length) > 0) {
if (4 == 5) { alert('here with more'); }
} else {
lv=eval(-1 + Math.floor(Math.random() * 8));
rv=eval(-1 + Math.floor(Math.random() * 8));
var xz='dominoes_' + lv + '_' + rv;
while (eval('' + thetilearr.length) < 28) {
if (sofara.indexOf(';' + xz + ';') == -1 && rv >= lv && lv >= 0 && lv <= 6 && rv >= 0 && rv <= 6) {
thetilearr.push(xz);
if (eval('' + thetilearr.length) <= 7) {
pip1cnt+=lv;
pip1cnt+=rv;
player1arr.push(xz);
} else if (eval('' + thetilearr.length) <= 14) {
pip2cnt+=lv;
pip2cnt+=rv;
player2arr.push(xz);
} else {
stockarr.push(xz);
}
sofara+=';' + xz + ';';
}
lv=eval(-1 + Math.floor(Math.random() * 8));
rv=eval(-1 + Math.floor(Math.random() * 8));
xz='dominoes_' + lv + '_' + rv;
}
}
}
function nameone(ospan) {
var xospan=document.getElementById(ospan.id.replace('1','2'));
var ourprefix=xospan.innerText;
if (eval('' + ospan.innerText.split('[').length) == 2 && eval('' + ospan.innerText.split(']').length) == 2 && eval('' + ospan.innerText.split(',').length) == 1) {
if (eval('' + xospan.innerText.split('[').length) == 2 && eval('' + xospan.innerText.split(']').length) == 2 && eval('' + xospan.innerText.split(',').length) == 1) {
ospan.innerHTML=ospan.innerText + ',' + ourprefix;
}
}
if (eval('' + ospan.innerText.split('[').length) == 3 && eval('' + ospan.innerText.split(']').length) == 3 && eval('' + ospan.innerText.split(',').length) >= 2) {
iam=ospan.innerText.split('[')[0];
iamcontact=ospan.innerText.split('[')[1].split(']')[0];
iamleft=true;
youare=ospan.innerText.split('[')[1].split(',')[eval(-1 + ospan.innerText.split('[')[1].split(',').length)];
youarecontact=ospan.innerText.split('[')[2].split(']')[0];
youareleft=false;
document.getElementById('fone').innerHTML='<a target=_blank href="' + (iamcontact.indexOf('@') != -1 ? 'mailto:' + iamcontact + '?subject=Dominoes%20Game' : 'sms:' + iamcontact) + '">' + iam + '</a>' + ' In Play';
document.getElementById('ftwo').innerHTML='<a target=_blank href="' + (youarecontact.indexOf('@') != -1 ? 'mailto:' + youarecontact + '?subject=Dominoes%20Game' : 'sms:' + youarecontact) + '">' + youare + '</a>' + ' In Play';
document.getElementById('name2').innerHTML=ospan.innerHTML.split(',')[1];
ospan.innerHTML=ospan.innerText.split(',')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('&body=', encodeURIComponent(' ... invited by ' + ospan.innerText.split(',')[0]) + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#') + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0]));
} else if (youarecontact.trim() != '' && youarecontact.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
if (11 == 1) {
iamleft=false;
alert('Sorry, we have to work out means to reduce message lengths, but an email address could work.');
} else {
document.getElementById('asms').href=document.getElementById('asms').href + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#' + encodeURIComponent(document.getElementById('mytable').innerHTML));
}
} else {
iamleft=false;
}
} else {
document.getElementById('fone').innerHTML=ospan.innerText + ' In Play';
}
}
function nametwo(ospan) {
var xospan=document.getElementById(ospan.id.replace('2','1'));
var ourprefix=xospan.innerText;
if (eval('' + ospan.innerText.split('[').length) == 2 && eval('' + ospan.innerText.split(']').length) == 2 && eval('' + ospan.innerText.split(',').length) == 1) {
if (eval('' + xospan.innerText.split('[').length) == 2 && eval('' + xospan.innerText.split(']').length) == 2 && eval('' + xospan.innerText.split(',').length) == 1) {
ospan.innerHTML=ospan.innerText + ',' + ourprefix;
}
}
if (eval('' + ospan.innerText.split('[').length) == 3 && eval('' + ospan.innerText.split(']').length) == 3 && eval('' + ospan.innerText.split(',').length) >= 2) {
iam=ospan.innerText.split('[')[0];
iamcontact=ospan.innerText.split('[')[1].split(']')[0];
iamleft=false;
youare=ospan.innerText.split('[')[1].split(',')[eval(-1 + ospan.innerText.split('[')[1].split(',').length)];
youarecontact=ospan.innerText.split('[')[2].split(']')[0];
youareleft=true;
document.getElementById('ftwo').innerHTML='<a target=_blank href="' + (iamcontact.indexOf('@') != -1 ? 'mailto:' + iamcontact + '?subject=Dominoes%20Game' : 'sms:' + iamcontact) + '">' + iam + '</a>' + ' In Play';
document.getElementById('fone').innerHTML='<a target=_blank href="' + (youarecontact.indexOf('@') != -1 ? 'mailto:' + youarecontact + '?subject=Dominoes%20Game' : 'sms:' + youarecontact) + '">' + youare + '</a>' + ' In Play';
document.getElementById('name1').innerHTML=ospan.innerText.split(',')[1];
ospan.innerHTML=ospan.innerText.split(',')[0];
if (youarecontact.indexOf('@') != -1) {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace('&body=', encodeURIComponent(' ... invited by ' + ospan.innerText.split(',')[0]) + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 1989786) + '&score1=' + document.getElementById('score1').innerHTML.replace('Score: ','') + '&score2=' + document.getElementById('score2').innerHTML.replace('Score: ','') + '&pip1cnt=' + pip1cnt + '&pip2cnt=' + pip2cnt + '&iam=' + encodeURIComponent(youare + '[' + youarecontact + ']') + '&iamleft=' + encodeURIComponent('' + youareleft) + '&youare=' + encodeURIComponent(iam + '[' + iamcontact + ']') + '&youareleft=' + encodeURIComponent('' + iamleft) + '#') + encodeURIComponent(document.body.innerHTML.split('<fo' + 'rm ')[0].split('<a' + ' target="_top"')[0]));
} else if (youarecontact.trim() != '' && youarecontact.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
if (11 == 1) {
youareleft=false;
alert('Sorry, we have to work out means to reduce message lengths, but an email address could work.');
} else {
document.getElementById('asms').href=document.getElementById('asms').href + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '#' + encodeURIComponent(document.getElementById('mytable').innerHTML));
}
} else {
youareleft=false;
}
} else {
document.getElementById('ftwo').innerHTML=ospan.innerText + ' In Play';
}
}
</script>
</head>
<body ondblclick="alert(document.body.title);" onload=deal(); border=1 style="background:linear-gradient(rgba(255,255,255,0.97),rgba(255,255,255,0.97)),URL(dominoes.png);background-size:contain;" title="Player names are editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar other Player change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with other Player name changed according).">
<h1>Dominoes Horizontal Block Game</h1>
<h3>RJM Programming - August, 2026 ... thanks to <a target="_blank" href="//www.gettyimages.com.au/search/2/image?mediatype=illustration&phrase=playing+dominoes+clip+art" rel="noopener">this useful link</a></h3>
<table style=width:95%;height:78%; cellpadding=10 id="mytable"><tbody>
<tr id=truppertop><td id=tdupper colspan=2><h4 id=myh4><font color=red>Playing Area</font> ... <font color=blue>Stock</font>... <font color=purple id=fone>Player 1 In Play</font> ... <font color=green id=ftwo>Player 2 In Play</font> <button onclick="event.stopPropagation(); bellzero=bellzero.replace(' ','x').replace('0',' ').replace('x','0'); if (this.innerHTML.indexOf('</strike>') != -1) { this.innerHTML=this.innerHTML.replace('<strike>','').replace('</strike>',''); } else { this.innerHTML='<strike>' + this.innerHTML + '</strike>'; } ourbeep(); " id=cbbeep title="If used, one beep indicates left hand player should turn away (and right hand player can rejoin), else two beeps indicates right hand player should turn away (and left hand player can rejoin)."><strike>Beep</strike></button></h4></td></tr>
<tr id=trtop style="height:40%;"><th id=thtop colspan=2 style="border:2px solid red;"></th></tr>
<tr id=trplayers style="height:10%;"><th id=thplayer1><span title="Is editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar Player 2 change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with Player 2 name changed according)." onblur=nameone(this); contenteditable=true id=name1>Player1</span> <span id=score1 style=font-size:8px;>Score: 0</span> <span id=buts1><button style="border:2px solid green;background-color:yellow;" onmouseover="turnawaynotfrom(this);" onclick=reveal(this); id=reveal1>Reveal Your Dominoes Below ...</button></span></th><th id=thplayer2><span title="Is editable and if you use name such as RM[rmetcalfe15@gmail.com] (collaboration can occur with similar Player 1 change) or RM[rmetcalfe15@gmail.com],RMet[rmetcalfe@rjmprogramming.com.au] (collaboration occurs with Player 1 name changed according)." onblur=nametwo(this); contenteditable=true id=name2>Player2</span> <span id=score2 style=font-size:8px;>Score: 0</span> <span id=buts2><button style="border:2px solid green;background-color:yellow;" onmouseover="turnawaynotfrom(this);" onclick=reveal(this); id=reveal2>Reveal Your Dominoes Below ...</button></span></th></tr>
<tr id=sevens style="height:20%;"><td id=seven1 style="border:2px solid purple;"></td><td id=seven2 style="border:2px solid green;"></td></tr>
<tr id=trstock style="height:30%;"><td id=thstock colspan=2 style="border:2px solid blue;"></th></tr>
</tbody></table>
<div id=dstyle></div>
<form style=display:none; target=ifp action='./dominoes_block_game.php' method='POST'>
<input type=hidden name=makenum title='' id=makenum value=''></input><input type=submit id=sifp style=display:none; value=Submit></input></form>
<iframe name=ifp id=ifp style=display:none; src='/About_Us.html'></iframe>
<a target="_top" id=aemail style=display:none; href='mailto:?subject=Dominoes%20Game&body='>Email</a>
<a target="_top" id=asms style=display:none; href='sms:&body='>SMS</a>
</body>
</html>