{"id":844,"date":"2014-11-04T21:27:03","date_gmt":"2014-11-04T21:27:03","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=844"},"modified":"2015-08-17T06:11:35","modified_gmt":"2015-08-17T06:11:35","slug":"javascriptbattle","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/javascript\/javascriptbattle\/","title":{"rendered":"JavascriptBattle"},"content":{"rendered":"<p>Lately I&#8217;ve been playing at <a href=\"http:\/\/javascriptbattle.com\/\">JavascriptBattle<\/a>, which\u00a0is<\/p>\n<blockquote><p>a fun and engaging web application intended to make artificial intelligence (AI) design accessible to all.\u00a0Every day, your code will be pulled down from your &#8220;hero-starter&#8221; repository on Github.\u00a0Your code (along with every other user&#8217;s code) will be run daily, behind the scenes, in our\u00a0game engine.<\/p><\/blockquote>\n<p>Basically, you write JavaScript code for your hero in order to instruct him how to behave when for example his health drops to a certain level, or when enemies are close, etc. and then you participate in a daily battle. They have various stats, and as it turns out I&#8217;m currently on position #3 for average damage\u00a0dealt, yay me!<\/p>\n<p><a href=\"http:\/\/www.nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/JavascriptBattle.jpg\" rel=\"lightbox[844]\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-846\" src=\"http:\/\/www.nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/JavascriptBattle-1024x592.jpg\" alt=\"JavascriptBattle\" width=\"604\" height=\"349\" srcset=\"https:\/\/nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/JavascriptBattle-1024x592.jpg 1024w, https:\/\/nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/JavascriptBattle-300x173.jpg 300w, https:\/\/nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/JavascriptBattle.jpg 1150w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Anyways, it&#8217;s cool so feel free to check it out and take me down from the pedestal :P. If you happen to like these &#8220;hacker games&#8221; then do checkout <a href=\"http:\/\/www.nikola-breznjak.com\/challenge\">the one I made<\/a> for my university project back in the old days <a href=\"http:\/\/www.nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/1415131129_smiley-evil.png\" rel=\"lightbox[844]\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-848\" src=\"http:\/\/www.nikola-breznjak.com\/blog\/wp-content\/uploads\/2014\/11\/1415131129_smiley-evil.png\" alt=\"1415131129_smiley-evil\" width=\"16\" height=\"16\" \/><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately I&#8217;ve been playing at JavascriptBattle, which\u00a0is a fun and engaging web application intended to make artificial intelligence (AI) design accessible to all.\u00a0Every day, your code will be&hellip;<\/p>\n","protected":false},"author":1,"featured_media":845,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,27],"tags":[],"class_list":["post-844","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hacker-games","category-javascript"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=844"}],"version-history":[{"count":3,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/844\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/844\/revisions\/850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/845"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}