{"id":12388,"date":"2011-07-18T07:04:59","date_gmt":"2011-07-18T12:04:59","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=12388"},"modified":"2011-07-18T08:18:50","modified_gmt":"2011-07-18T13:18:50","slug":"sherwood-showdown-winner-announced","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=12388","title":{"rendered":"Sherwood Showdown: Winner Announced"},"content":{"rendered":"<p>The winner of the <a href=\"?p=12349\">random drawing<\/a> has been chosen.  Turns out it wasn&#8217;t you.  I know. I&#8217;m disappointed too.  I really thought you had it.  The game should end up in the mail sometime today or tomorrow. <\/p>\n<p>Well, fortune has failed you.  However, you can still obtain the game by means of <a href=\"http:\/\/whimsygames.ca\/buy-games\/#comment-4\">commerce<\/a>. A brute-force solution, I admit, but it&#8217;s less labor-intensive than theft. <\/p>\n<p>For those of you who are curious about how the winner was selected, I will post these quasi-technical details:<\/p>\n<p><!--more-->The first step is going into the database and tracking down all of the eligible comments. This is problematic because I use mySQL just rarely enough to forget what I&#8217;m doing each time.  For example:<\/p>\n<pre lang=\"sql\">SELECT FROM wp_comments comment_author, comment_author_email, comment_content WHERE comment_post_ID='12349' AND comment_content REGEXP ('gimmie');<\/pre>\n<p>I ALWAYS make this mistake.  And I always forget that I always make this mistake. And I&#8217;m always mystified that I&#8217;m getting an error after making this mistake.  Then I discover the error.  Then I remember making the error last time, and so on. It&#8217;s completely ridiculous, and wouldn&#8217;t happen at all if I used a database more often than once every nine months.  <\/p>\n<p>My wife gives directions like this, and it always leads to those sort of unintentional misunderstandings that keep sitcoms in business after all of these years. <\/p>\n<p>HEATHER: Would you get me something? I need a tiny blue container sitting on the&#8230;<\/p>\n<p>Me (to myself): <em>Okay, she wants a container. Are we talking medicine, or food, or a container for one or the other that&#8217;s been re-purposed?  There&#8217;s a lot of nut tins around here holding screws and coins and&#8230;<\/em><\/p>\n<p>HEATHER: &#8230;on the left-hand side of the&#8230;<\/p>\n<p>Me (to myself): <em>We&#8217;re dealing with the left side of something here, but what?  A room? A cupboard. A counter-top?<\/em><\/p>\n<p>HEATHER: &#8230;second shelf up&#8230;<\/p>\n<p>Me (to myself): <em>Shelf! So we&#8217;re either talking about the bathroom, the kitchen, or the garage. Not the bedroom, living room, or&#8230;<\/em><\/p>\n<p>HEATHER: &#8230;of the big cabinet in the&#8230;<\/p>\n<p>Me (to myself): <em>Big cabinet? So that means we&#8217;re talking about a room with more than one cabinet, and one is larger than the other&#8230;<\/em><\/p>\n<p>HEATHER: &#8230;kitchen.<\/p>\n<p>Me (to myself): <em>Kitchen! Got it! So I need to go into the kitchen and get the&#8230; crap.  What color was the bottle again?<\/em> <\/p>\n<p>So it goes.  I always expect and give directions beginning with the most general and working to the most specific.  My wife (and mySQL) go from specific to to general. I suppose my wife&#8217;s way is better if the other person intuits what you&#8217;re talking about before you get to the end.  You can abort the information transfer and go get the thing directly.  It has the disadvantage that all directions are useless until the listener makes that connection, at which point they must play them back in reverse order.  Still, both methods have their uses, although it doesn&#8217;t explain why mySQL wants to know what fields I want before I tell it what table it should look in.<\/p>\n<p>The correct command is of course:<\/p>\n<pre lang=\"sql\">SELECT comment_author, comment_author_email, comment_content FROM wp_comments WHERE comment_post_ID='12349' AND comment_content REGEXP ('gimmie');<\/pre>\n<p>This yields a list of 282 entries.  <\/p>\n<p>Now I need dice.  Yes, I could use mySQL, or a web-based random number generator, or any of the dozens of RNG&#8217;s at my disposal, but I promised to use dice for this and that&#8217;s what we&#8217;re doing.  This site is named TWENTY SIDED and I so rarely write about anything that might be remotely affiliated with things that might be remotely connected with that phrase.<\/p>\n<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/dice3.jpg' class='insetimage'   alt='dice3.jpg' title='dice3.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>This is either an extensive dice collection, or a good start, depending on how long you&#8217;ve been gaming.  As much as I&#8217;d like to throw a huge pile of 20-siders, I think this is a job for 10-siders.<\/p>\n<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/dice4.jpg' class='insetimage'   alt='dice4.jpg' title='dice4.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>Red will be the hundreds, green is the tens, blue is the ones. If I get a number greater than 282, I&#8217;ll <a href=\"http:\/\/en.wikipedia.org\/wiki\/Modulo_operation\">modulo<\/a> the result with 282. <\/p>\n<p>I roll a 236.  I open up the results spewed by mySQL and check line #236 for our winner.  Done.<\/p>\n<p>Note that the results are final.  Even if I did something incorrect, foolish, or idiotic, it was at least <em>randomly<\/em> so. <\/p>\n<p>I must say it&#8217;s very strange going through the Sherwood Showdown cards.  A lot of these were modeled by people we know, and several were based on sketches of guys from my gaming group.  Heather changed the age, haircut, and clothing, but I can still see the original poser showing through in expression and body language.  (You hear that, guys? You&#8217;re a bunch of posers! Just thought you should know.)<\/p>\n<p>If you&#8217;re looking to buy the game: Yes, most international orders are fine.  It&#8217;s actually cheaper to mail the game from Canada to the Netherlands than to mail from one part of Canada to another. No, I don&#8217;t understand why.  Once again, here is the <a href=\"http:\/\/whimsygames.ca\/buy-games\/\">order page<\/a> which, I hasten to remind you, is easier than theft.  Even for rogues.<\/p>\n<p>UPDATE: Three people have all pointed out this this was an uneven distribution of odds, no need to say the same thing.  The winner fell outside of the &#8220;favored&#8221; range anyway, so&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The winner of the random drawing has been chosen. Turns out it wasn&#8217;t you. I know. I&#8217;m disappointed too. I really thought you had it. The game should end up in the mail sometime today or tomorrow. Well, fortune has failed you. However, you can still obtain the game by means of commerce. A brute-force [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-12388","post","type-post","status-publish","format-standard","hentry","category-tabletop-games"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/12388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12388"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/12388\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}