{"id":2935,"date":"2022-07-17T13:52:11","date_gmt":"2022-07-17T04:52:11","guid":{"rendered":"https:\/\/www.codedojo.com\/?p=2935"},"modified":"2022-07-21T13:29:19","modified_gmt":"2022-07-21T04:29:19","slug":"100-prisoners-riddle-interactive-web-app-i-did-in-unity","status":"publish","type":"post","link":"https:\/\/www.codedojo.com\/?p=2935","title":{"rendered":"The 100 Prisoners Problem riddle interactive web app simulation I did in Unity"},"content":{"rendered":"\n<p>So this is one of those times where I made something in a few hours and want it to be indexed on the web rather than just the ethereal world of twitter so I&#8217;m making this post about it in the hopes that people will find it with a very specific Google search.  (<em>probably some kid stealing this for his homework.. steal away, I don&#8217;t mind!<\/em>)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pbs.twimg.com\/media\/FXeEkASagAE5uyO?format=jpg&amp;name=medium\" alt=\"Image\"\/><figcaption>The app looks like this.  You can pan and zoom around and click buttons to control the simulation.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/toolfish.com\/100prisoners\/\">Play it here<\/a><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/SethRobinson\/100prisoners\">Full source code of my unity project (github)<\/a><\/h2>\n\n\n\n<p>So if you&#8217;ve never heard of the 100 Prisoners Problem Riddle, it&#8217;s an amazing math trick where the solution seems to defy all logic.  The way I was introduced to it was with <a href=\"https:\/\/twitter.com\/veritasium\">Veritasium<\/a>&#8216;s easy to understand video on the subject:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"The Riddle That Seems Impossible Even If You Know The Answer\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/iSNsgj1OCLA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Still here?  Fine, go check out the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Monty_Hall_problem\">Monty Hall Problem<\/a> then!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So this is one of those times where I made something in a few hours and want it to be indexed on the web rather than just the ethereal world of twitter so I&#8217;m making this post about it in the hopes that people will find it with a very specific Google search. (probably some [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,21],"tags":[],"class_list":["post-2935","post","type-post","status-publish","format-standard","hentry","category-tech-tips","category-unity"],"_links":{"self":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2935"}],"version-history":[{"count":4,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2935\/revisions"}],"predecessor-version":[{"id":2985,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2935\/revisions\/2985"}],"wp:attachment":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}