Add Scroogle to your search area in Firefox 2.0 Install the 'Scroogle Scraper' search plugin.

January 2007


Over on my other site I just posted a blog entry about a Dominos pizza ad campaign where each day they release a word puzzle and if you solve the puzzle you get a link to an eBay auction where the first ten people that day (for only $9.99) can buy pretty cool stuff, like an iPod or a year’s worth of pizza.

The puzzles are one of three forms: Word Jumbles, CryptoQuips or Domino’s Trivia. The Word Jumble is just as it sounds; they scramble the letters of some Domino’s themed sentence around and you get to unscramble it. For example: MOIODSN HITNNYGA SOGE ALED

Here’s the link to my Word Jumble solver Domino’s Pizza Anything Goes Deal Helper Script

And here is the code:


if (isset($_REQUEST[”word_jumble”])&&$_REQUEST[”word_jumble”]!='’)
{

$vocabArray=array(’2-liter’,'a’,…,’Vine-Ripened’,'wings’);

$lookuptable=array();
foreach($vocabArray as $vocab)
{
$str=strtoupper($vocab);
$tempArray= array();
for($i=0; $i<strlen($str); $i++)
{
$tempArray[]=$str[$i];
}
sort($tempArray);
$tempStr=implode('’,$tempArray);
$lookuptable[$tempStr]=$vocab;
}
$wordArray=explode(’ ‘,$word_jumble);
foreach ($wordArray as $word)
{
$str=strtoupper($word);
$tempArray= array();
for($i=0; $i<strlen($str); $i++)
{
$tempArray[]=$str[$i];
}
sort($tempArray);
$tempStr=implode('’,$tempArray);
$unscrambled = ($lookuptable[$tempStr]=='’)?’?????’:$lookuptable[$tempStr];
echo($word.” = “.$unscrambled.”\n “);
}

Over in the other blog, I posted three more bot posts. Here are the links:

The other day Beau Scott accused me of neglecting my tech blog, so I thought I’d better post something here. Yes, I know, it’s just a repost from my regular blog. Sorry. :(

Just about every week I get an email/text/IM/comment from someone who stumbles across my blog and then finds my talking robot. Many describe the feature as one of the best on the site. If you haven’t yet discovered the talking bot, (or if you want to have some more fun) now is as good a time as any to click on over and begin your chats. If the conversation is particularly funny, post it here in the comments for us all to enjoy. Happy Talking!

Did I write the bot myself? No, it’s just an AliceBot PHP app. When i get some time, I’ll modify it. I think that AIML has promise. Do you? Discuss.

Send to a friend * Print this page * Join the club * Talk with my robot * Advertise here * Search this Site * Donate * Link to me


Web hosting by Utah Hub *  Powered by CreativeTap *  In association with Segomo
Unless otherwise noted, Copyright 2004-2006, Ryan Byrd. All Rights Reserved.
Ryan Byrd dot net -- probably the coolest site in Utah