{"id":13,"date":"2006-01-10T19:48:02","date_gmt":"2006-01-10T17:21:23","guid":{"rendered":""},"modified":"2017-03-07T16:18:33","modified_gmt":"2017-03-07T16:18:33","slug":"solving_the_missionaries_and_cannibals_p","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ferdy\/2006\/01\/10\/solving_the_missionaries_and_cannibals_p\/","title":{"rendered":"Solving the Missionaries and Cannibals puzzle"},"content":{"rendered":"<p>There is a traditional puzzle where 3 missionaries and 3 cannibals have to cross a river using a small canoe. Rules are:<\/p>\n<p>* You cannot have more cannibals than missionaries in either bank because cannibals will eat missionaries.<br \/>\n* The canoe can be run by either one or two persons. Both cannibals and missionaries know how to run it.<\/p>\n<p>This puzzle is really easy to solve either by hand or programming. However, hacking a script to solve it is always more challenging than solving it by hand. Juanjo proposes a solution using Ruby in <a href=\"http:\/\/blackshell.usebox.net\/archivo\/760.php\">Misioneros y can<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a traditional puzzle where 3 missionaries and 3 cannibals have to cross a river using a small canoe. Rules are: * You cannot have more cannibals than missionaries in either bank because cannibals will eat missionaries. * The canoe can be run by either one or two persons. Both cannibals and missionaries know &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ferdy\/2006\/01\/10\/solving_the_missionaries_and_cannibals_p\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Solving the Missionaries and Cannibals puzzle<\/span><\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts\/13\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}