Ok, through the power of boredom and the will to drag a mindless project out until I go on vacation, and the help of drawmack, I made this little function to do the calculation. If anyone wants to add to it/make it better, go right ahead. Shouldn't be hard to put a little interface to it and make the webpage. Maybe if I get bored again this afternoon, I will 🙂
function getAnswer($guess,$dice) {
/* expects $guess to be the number they guess
* and expects $dice to be the array of numbers on the dice
*/
if(is_numeric($guess)) {
$ttl = 0;
foreach($dice as $d) {
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),159373) == "15NXPWLZBO4bg") {
$ttl += ceil(round(bcsub((256/264+2569*1*132),291.05)/(6-1+1.4)-(2880/2)-71321+19820.84375));
}
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),654823) == "65KE6GMNeYcgM") {
$ttl += ceil(round(bcsub((123/264+24.5*1*1230/2),.5)/(5-16+.6)-(2880/2)+2892.75));
}
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),045982) == "37p/gVpwPZjBo") {
$ttl += ceil(round(bcsub((25605/26+2569*1*132),1191)/(4-1+-1.2*2.1/1)-(2880/2)/2-82*2.5-705118.75));
}
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),123456) == "12fbM71WMjRkM") {
$ttl += ceil(round(bcsub((246/492+24.5*1*1230/2),.5)/(5-16+.6)-(145/2)+71.5+1451.75));
}
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),116831) == "11nsXlF1fsAb6") {
$ttl += ceil(round(bcsub((935605.2/641.5+2569*1*132),1191)/(43-40+-1.2*2.1/1)-(66240/46)/1291-82*2.5-706106.25-719));
}
if(crypt(sha1(md5("/$".$d."\".+1-1+2")),953622) == "952oLLiliMdbw") {
$ttl += ceil(round(bcsub((4/64100.1121+29*1*3305),20)/(96-41+1*42/2)-(0.22/46)/82*520.43-1289+28.2321));
}
}
if($guess == $ttl) {
return true;
}
}
return false;
}