{"id":799,"date":"2014-02-21T20:59:33","date_gmt":"2014-02-22T01:59:33","guid":{"rendered":"http:\/\/learninglover.com\/blog\/?p=799"},"modified":"2014-05-28T10:41:37","modified_gmt":"2014-05-28T14:41:37","slug":"dots-and-boxes-game","status":"publish","type":"post","link":"https:\/\/learninglover.com\/blog\/index.php\/2014\/02\/21\/dots-and-boxes-game\/","title":{"rendered":"Dots and Boxes Game"},"content":{"rendered":"<p><a href=\"http:\/\/www.learninglover.com\/examples.php?id=69\"><img decoding=\"async\" src=\"http:\/\/learninglover.com\/blog\/wp-content\/gallery\/examples\/dots.jpg\" alt=\"Dots and Boxes Game\" \/><\/a><\/p>\n<p>When I was in high school, one of my favorite ways to waste time in class (not recommended) was to play a game called dots and boxes (although at the time we just called it dots). I was very surprised to find later that this game belongs to a class of games called &#8220;Impartial Combinatorial Games&#8221;. These are games where the moves available to the player depend only on the position of the game, and not the player. <\/p>\n<p>In a game of Dots and Boxes, we start with an initial grid with dots at each row and column intersection. At each player&#8217;s turn, they have the option of drawing either a horizontal or vertical line between two neighboring dots (depending on if the dots are in the same row or column). If a player fills in the last line on a box (the 4th side), we say that player &#8220;owns&#8221; the box. The game ends when there are no neighboring dots without a line between them. At the conclusion of the game, the player who owns the most dots is declared the winner.<\/p>\n<p>The game is impartial because there is no restriction on which move a player can make other than the fact that a player cannot re-do a move that has already been made (a partial version of this game would be if player one could only move horizontally and player two could only move vertically). <\/p>\n<p>I have implemented a javascript version of this game. <a href=\"http:\/\/www.learninglover.com\/examples.php?id=69\">Check it out<\/a> and let me know what you think. <\/p>\n<p>I also spoke earlier about the discovery that this game in particular was an active area of research. I wanted to provide a link to a paper entitled <a href=\"http:\/\/www.aaai.org\/ocs\/index.php\/AAAI\/AAAI12\/paper\/viewFile\/5126\/5218\" title=\"Solving Dots and Boxes by Barker and Korf\">&#8220;Solving Dots and Boxes&#8221;<\/a> by Joseph K. Barker and Richard E Korf that speaks about winning strategies for each player in a game of dots and boxes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I was in high school, one of my favorite ways to waste time in class (not recommended) was to play a game called dots and boxes (although at the time we just called it dots). I was very surprised to find later that this game belongs to a class of games called &#8220;Impartial Combinatorial [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=799"}],"version-history":[{"count":0,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/799\/revisions"}],"wp:attachment":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}