{"id":2714,"date":"2008-11-03T11:10:00","date_gmt":"2008-11-03T11:10:00","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/winners-of-the-bejewelled-puzzle\/"},"modified":"2016-07-28T10:49:27","modified_gmt":"2016-07-28T10:49:27","slug":"winners-of-the-bejewelled-puzzle","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/winners-of-the-bejewelled-puzzle\/","title":{"rendered":"Winners of the Bejewelled Puzzle"},"content":{"rendered":"<p>There are three winners:<\/p>\n<ul>\n<li><b>Timothy Walters<\/b>  &#8211; for his second solution with the offset table; <i>He gets a $50 Amazon Voucher.<\/i><\/li>\n<li><b>Ryan Randall<\/b> &#8211; for his first and second solutions;<i> He gets a choice between a license for SQL Prompt and SQL Data Generator<\/i><\/li>\n<li><b>DrLechter<\/b> &#8211; for his first and second solutions; <i>He gets a choice between a license for SQL Prompt and SQL Data Generator<\/i><\/li>\n<\/ul>\n<p>Timothy Walters&#8217;s solution is very simple and elegant. Almost all of the logic has been implemented in the lookup table and that makes the solution portable and flexible.<\/p>\n<p>In addition, his solution can be easiely modified in order to show the directions of the moves by adding one more column to the offset table.  <\/p>\n<p> Here is how it can be done:  <\/p>\n<pre><\/pre>\n<p>There is one more person &#8211; AmandaS that should be specially mentioned. Her second solution was very similar to Timothy Walters&#8217; and Ryan Randall&#8217;s solutions, but was submitted five days later.<\/p>\n<p>A few more people should be mentioned as well:<\/p>\n<ul>\n<li><b>Saharafrog <\/b>&#8211; interesting solution<\/li>\n<li><b>Doug Stewart <\/b> <\/li>\n<li><b>Steve Munson<\/b>  &#8211; his solution shows the coordinates of the cells that should be moved and the coordinates of destination cells <\/li>\n<li> <b>RBarry Young <\/b> <\/li>\n<li><b>Dennis A<\/b> <\/li>\n<li><b>SkyBeaver  <\/b>  <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There are three winners: Timothy Walters &#8211; for his second solution with the offset table; He gets a $50 Amazon Voucher. Ryan Randall &#8211; for his first and second solutions; He gets a choice between a license for SQL Prompt and SQL Data Generator DrLechter &#8211; for his first and second solutions; He gets a&#8230;&hellip;<\/p>\n","protected":false},"author":9580,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-2714","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/9580"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=2714"}],"version-history":[{"count":1,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2714\/revisions"}],"predecessor-version":[{"id":24683,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2714\/revisions\/24683"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=2714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=2714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=2714"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=2714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}