
{"id":4801,"date":"2021-02-13T14:18:56","date_gmt":"2021-02-13T19:18:56","guid":{"rendered":"https:\/\/ikriv.com\/blog\/?p=4801"},"modified":"2021-02-13T14:18:56","modified_gmt":"2021-02-13T19:18:56","slug":"tic-tac-toe-in-html5","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=4801","title":{"rendered":"Tic-tac-toe in HTML5"},"content":{"rendered":"<p>I was just experimenting with HTML5 canvas. The game is entirely in HTML5\/JavaScript, it should work on desktop and on mobile devies. The moves table is pre-generated in C#.<\/p>\n<ul>\n<li><a href=\"https:\/\/ikriv.com\/ttt\">Play against optimal algorithm<\/a><\/li>\n<li><a href=\"https:\/\/ikriv.com\/ttt?player=random\">Play against random algorithm<\/a><\/li>\n<li><a href=\"https:\/\/ikriv.com\/ttt?player=human\">Play against human (two humans required)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ikriv-samples\/tic-tac-toe\">Source code and notes<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4802\" src=\"https:\/\/ikriv.com\/blog\/wp-content\/uploads\/2021\/02\/screenshot.png\" alt=\"Tic-tac-toe screenshot\" width=\"499\" height=\"523\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was just experimenting with HTML5 canvas. The game is entirely in HTML5\/JavaScript, it should work on desktop and on mobile devies. The moves table is pre-generated in C#. Play <a href=\"https:\/\/ikriv.com\/blog\/?p=4801\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4],"tags":[],"class_list":["entry","author-ikriv","post-4801","post","type-post","status-publish","format-standard","category-hack"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4801"}],"version-history":[{"count":1,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4801\/revisions"}],"predecessor-version":[{"id":4803,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4801\/revisions\/4803"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}