{"id":71,"date":"2009-09-08T19:51:23","date_gmt":"2009-09-08T18:51:23","guid":{"rendered":"http:\/\/blog.blockos.org\/?p=71"},"modified":"2014-09-21T17:08:37","modified_gmt":"2014-09-21T16:08:37","slug":"lights-out","status":"publish","type":"post","link":"https:\/\/blog.blockos.org\/?p=71","title":{"rendered":"Lights out!"},"content":{"rendered":"<p>After spending hours playing <a href=\"http:\/\/primrose.sourceforge.net\/\">Primrose<\/a>, I decided to code a little board game using <a href=\"http:\/\/www.ggi-project.org\">GGI<\/a> during a week-end. I don&#8217;t remember how but I ended on the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Lights_Out_%28game%29\">Lights Out wikipedia page<\/a>.<\/p>\n<p>The gameplay is quite simple. You have a 5&#215;5 board with tiles randomly switched on. Well not really randomly because it&#8217;s frustrating to have an unsolvable board ;). Your goal is to switch all the tiles off by pressing them. The problem is that when you press a tile, the four adjacent tiles are toggled on or off (see it as an xor). <\/p>\n<p>And voila! It&#8217;s a very basic implementation. It features simple graphics, no text nor title screen&#8230;<\/p>\n<ul>\n<li><a href=\"http:\/\/blockos.org\/releases\/lightsOut\/lightsout.c\">(code)<\/a><\/li>\n<li><a href=\"http:\/\/blockos.org\/releases\/lightsOut\/Makefile\">(Makefile)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>After spending hours playing Primrose, I decided to code a little board game using GGI during a week-end. I don&#8217;t remember how but I ended on the Lights Out wikipedia page. The gameplay is quite simple. You have a 5&#215;5 board with tiles randomly switched on. Well not really randomly\u2026 <a class=\"continue-reading-link\" href=\"https:\/\/blog.blockos.org\/?p=71\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[27,20],"_links":{"self":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":11,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":976,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/976"}],"wp:attachment":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}