3c3 < Canvas HTML Element Up to 208 Card Pick Up Game Tutorial ... RJM Programming ... January 2016 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element --- > Canvas HTML Element Odds 200 Game Tutorial ... RJM Programming ... December 2013 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element 9d8 < var packs = 4; 11,21d9 < function cpacks(stv) { < var osis=document.getElementById('packs1'); < if (osis) osis.value=stv; < osis=document.getElementById('packs2'); < if (osis) osis.value=stv; < osis=document.getElementById('packs3'); < if (osis) osis.value=stv; < osis=document.getElementById('packs4'); < if (osis) osis.value=stv; < packs=eval(stv / 52); < } 33d20 < packs = location.search.split('decks=')[1] ? eval(location.search.split('decks=')[1].split('&')[0]) : 4; 58,59c45,46 <

Select card criteria, click anywhere on card table to shuffle, start game ... Take fewest goes to reach score of 200

Score 0 achieved via 0 goes () & your current card criteria guess is

< --- >

Select card criteria, click anywhere on card table to shuffle, start game ... Take fewest goes to reach score of 200

Score 0 achieved via 0 goes & your current card criteria guess is

> 69c56 < var worthof = new Array(0.0, eval(4.0 * 1.0), eval(13.0 * 1.0), eval(52.0 * 1.0), eval(2.0 * 1.0)); --- > var worthof = new Array(0.0, 4.0, 13.0, 52.0, 2.0); 127,283c114 < "images/13s.gif", < "images/01c.gif ", < "images/01d.gif ", < "images/01h.gif ", < "images/01s.gif ", < "images/02c.gif ", < "images/02d.gif ", < "images/02h.gif ", < "images/02s.gif ", < "images/03c.gif ", < "images/03d.gif ", < "images/03h.gif ", < "images/03s.gif ", < "images/04c.gif ", < "images/04d.gif ", < "images/04h.gif ", < "images/04s.gif ", < "images/05c.gif ", < "images/05d.gif ", < "images/05h.gif ", < "images/05s.gif ", < "images/06c.gif ", < "images/06d.gif ", < "images/06h.gif ", < "images/06s.gif ", < "images/07c.gif ", < "images/07d.gif ", < "images/07h.gif ", < "images/07s.gif ", < "images/08c.gif ", < "images/08d.gif ", < "images/08h.gif ", < "images/08s.gif ", < "images/09c.gif ", < "images/09d.gif ", < "images/09h.gif ", < "images/09s.gif ", < "images/10c.gif ", < "images/10d.gif ", < "images/10h.gif ", < "images/10s.gif ", < "images/11c.gif ", < "images/11d.gif ", < "images/11h.gif ", < "images/11s.gif ", < "images/12c.gif ", < "images/12d.gif ", < "images/12h.gif ", < "images/12s.gif ", < "images/13c.gif ", < "images/13d.gif ", < "images/13h.gif ", < "images/13s.gif ", < "images/01c.gif ", < "images/01d.gif ", < "images/01h.gif ", < "images/01s.gif ", < "images/02c.gif ", < "images/02d.gif ", < "images/02h.gif ", < "images/02s.gif ", < "images/03c.gif ", < "images/03d.gif ", < "images/03h.gif ", < "images/03s.gif ", < "images/04c.gif ", < "images/04d.gif ", < "images/04h.gif ", < "images/04s.gif ", < "images/05c.gif ", < "images/05d.gif ", < "images/05h.gif ", < "images/05s.gif ", < "images/06c.gif ", < "images/06d.gif ", < "images/06h.gif ", < "images/06s.gif ", < "images/07c.gif ", < "images/07d.gif ", < "images/07h.gif ", < "images/07s.gif ", < "images/08c.gif ", < "images/08d.gif ", < "images/08h.gif ", < "images/08s.gif ", < "images/09c.gif ", < "images/09d.gif ", < "images/09h.gif ", < "images/09s.gif ", < "images/10c.gif ", < "images/10d.gif ", < "images/10h.gif ", < "images/10s.gif ", < "images/11c.gif ", < "images/11d.gif ", < "images/11h.gif ", < "images/11s.gif ", < "images/12c.gif ", < "images/12d.gif ", < "images/12h.gif ", < "images/12s.gif ", < "images/13c.gif ", < "images/13d.gif ", < "images/13h.gif ", < "images/13s.gif ", < "images/01c.gif ", < "images/01d.gif ", < "images/01h.gif ", < "images/01s.gif ", < "images/02c.gif ", < "images/02d.gif ", < "images/02h.gif ", < "images/02s.gif ", < "images/03c.gif ", < "images/03d.gif ", < "images/03h.gif ", < "images/03s.gif ", < "images/04c.gif ", < "images/04d.gif ", < "images/04h.gif ", < "images/04s.gif ", < "images/05c.gif ", < "images/05d.gif ", < "images/05h.gif ", < "images/05s.gif ", < "images/06c.gif ", < "images/06d.gif ", < "images/06h.gif ", < "images/06s.gif ", < "images/07c.gif ", < "images/07d.gif ", < "images/07h.gif ", < "images/07s.gif ", < "images/08c.gif ", < "images/08d.gif ", < "images/08h.gif ", < "images/08s.gif ", < "images/09c.gif ", < "images/09d.gif ", < "images/09h.gif ", < "images/09s.gif ", < "images/10c.gif ", < "images/10d.gif ", < "images/10h.gif ", < "images/10s.gif ", < "images/11c.gif ", < "images/11d.gif ", < "images/11h.gif ", < "images/11s.gif ", < "images/12c.gif ", < "images/12d.gif ", < "images/12h.gif ", < "images/12s.gif ", < "images/13c.gif ", < "images/13d.gif ", < "images/13h.gif ", < "images/13s.gif " --- > "images/13s.gif" 314c145 < var img=document.getElementById(deckcards[curcard].replace("images/","").replace(".gif","").replace(" ","3").replace(" ","2").replace(" ","1")); --- > var img=document.getElementById(deckcards[curcard].replace("images/","").replace(".gif","")); 319,320c150 < //alert('Packs=' + packs); < document.getElementById('myh1').innerHTML = 'Change criteria selection maybe & click card table to reveal card (' + "".replace(eval(packs * 52), "" + eval(packs * 52) + " selected") + ') ... Take fewest goes to reach score of 200'; --- > document.getElementById('myh1').innerHTML = 'Change criteria selection maybe & click card table to reveal card ... Take fewest goes to reach score of 200'; 323,324c153 < //alert('packs=' + packs); < document.getElementById('myh1').innerHTML = 'Click anywhere on card table for a new card (' + "".replace(eval(packs * 52), "" + eval(packs * 52) + " selected") + ') ... Take fewest goes to reach score of 200'; --- > document.getElementById('myh1').innerHTML = 'Click anywhere on card table for a new card ... Take fewest goes to reach score of 200'; 336c165 < window.location = './two_o_eight_pick_up.html'; --- > window.location = './odds_200.html'; 351c180 < if (curcard >= eval(52 * packs)) { --- > if (curcard >= 52) { 360c189 < wl = wl + './two_o_eight_pick_up.html?score=' + score + '.0&goes=' + goes + '.0&decks=' + packs; --- > wl = wl + './odds_200.html?score=' + score + '.0&goes=' + goes + '.0'; 362c191 < wl = wl + './two_o_eight_pick_up.html?score=' + score + '.0&goes=' + goes + '&decks=' + packs; --- > wl = wl + './odds_200.html?score=' + score + '.0&goes=' + goes; 366c195 < wl = wl + './two_o_eight_pick_up.html?score=' + score + '&goes=' + goes + '.0&decks=' + packs; --- > wl = wl + './odds_200.html?score=' + score + '&goes=' + goes + '.0'; 368c197 < wl = wl + './two_o_eight_pick_up.html?score=' + score + '&goes=' + goes + '&decks=' + packs; --- > wl = wl + './odds_200.html?score=' + score + '&goes=' + goes; 384c213 < var nnamecard = deckcards[thecard].replace("images/","").replace(".gif","").replace(" ","3").replace(" ","2").replace(" ","1"); --- > var nnamecard = deckcards[thecard].replace("images/","").replace(".gif",""); 388c217 < if (gs.value.indexOf(nnamecard.substring(2,3)) != -1) factor = 1.0; --- > if (gs.value.indexOf(nnamecard.substring(2)) != -1) factor = 1.0; 390c219 < if (nnamecard.substring(0,3).indexOf(gs.value.substring(0)) != -1) factor = 1.0; --- > if (nnamecard.indexOf(gs.value.substring(0)) != -1) factor = 1.0; 392c221 < if (nnamecard.substring(0,3).indexOf(gs.value.substring(0)) != -1) factor = 1.0; --- > if (nnamecard.indexOf(gs.value.substring(0)) != -1) factor = 1.0; 394c223 < if (nnamecard.substring(0,3) == gs.value.substring(0,3)) factor = 1.0; --- > if (nnamecard == gs.value) factor = 1.0; 398,401c227,230 < worthof[1] = eval((eval(52.0 * packs) - realgoes) / eval(13.0 * packs)); < worthof[2] = eval((eval(52.0 * packs) - realgoes) / eval(4.0 * packs)); < worthof[3] = eval((eval(52.0 * packs) - realgoes) / eval(1.0 * packs)); < worthof[4] = eval((eval(52.0 * packs) - realgoes) / eval(26.0 * packs)); --- > worthof[1] = eval((52.0 - realgoes) / 13.0); > worthof[2] = eval((52.0 - realgoes) / 4.0); > worthof[3] = eval((52.0 - realgoes) / 1.0); > worthof[4] = eval((52.0 - realgoes) / 26.0); 432c261 < for (ii=0; ii for (ii=0; ii<52; ii++) { 435c264 < mm = Math.floor((Math.random()*eval(52 * packs))+0); --- > mm = Math.floor((Math.random()*52)+0); 445c274 < document.write(''); --- > document.write(''); 450c279 < if (inidone == 0) document.write(''); --- > if (inidone == 0) document.write('');