[{"data":1,"prerenderedAt":211},["ShallowReactive",2],{"project-8344877":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":43,"post_text":44,"what":45,"said":56,"maker_in_thread":124,"shape":129,"grid":133,"attempts":172,"same_week":173,"maker_shows":37,"maker_hidden":203,"reader_version":204,"card":205},"8344877","Battleboat.js","A robot that plays Battleship","title","Show HN: Battleboat.js – A robot that plays Battleship","http:\u002F\u002Fkortaggio.github.io\u002Fbattleboat\u002F","kortaggio.github.io","Kortaggio",1411230749,2014,52,16,612,2272,27,"notable","games","browser game","web_app",[24,25,26,27],"battleship","javascript","game bot","battleship ai","debated",-0.032,{"positive":31,"neutral":31,"mixed":32,"critical":33},4,0,5,13,{"performance":36,"docs":38,"idea":39,"design":40,"execution":41},{"positive":31,"critical":37},3,{"positive":32,"critical":32},{"positive":32,"critical":32},{"positive":32,"critical":32},{"positive":32,"critical":42},1,[42,42,37,32,37,42,33,37,32,33,32,37,42,33,42,33],null,{"problem":44,"audience":44,"pricing":44,"motivation":44,"time_to_build":44,"stack":46,"openness":55,"stage":55,"team_size":55},[47],{"value":48,"source":49,"evidence":50},"JavaScript","commenter",[51],{"id":52,"by":53,"text":54},"8346073","sadkingbilly","The probability grid is very neat. One question though, it looks like Ship.DIRECTION_VERTICAL and Ship.DIRECTION_HORIZONTAL might be flipped. It seems consistent, so it's ok.…","unknown",{"praise":57,"objections":73,"requests":96,"questions":111,"alternatives":123},[58],{"value":59,"source":49,"evidence":60},"Fun to play and hard to beat",[61,65,69],{"id":62,"by":63,"text":64},"8344917","Graham42x","It's reached a point where I can no longer beat the bot!",{"id":66,"by":67,"text":68},"8345427","yincrash","won my 3rd game. definitely hard",{"id":70,"by":71,"text":72},"8345675","niix","Awesome! Won the first game, was feeling a bit worried at first!",[74,89],{"value":75,"source":49,"evidence":76},"Bot follows a deterministic search pattern that can be exploited by placement",[77,81,85],{"id":78,"by":79,"text":80},"8345525","GoldenStake","Optimal placement of the boats is pretty simple to find in games like this. After playing a round or two a simple pattern in the searching algorithm emerges. After a few…",{"id":82,"by":83,"text":84},"8347860","christiangenco","I found a similar setup: http:\u002F\u002Fimgur.com\u002FaOaZYrs It'd be fun to automate the process and find the absolute best strategy against this deterministic guessing algorithm. Edit: the…",{"id":86,"by":87,"text":88},"8345566","urs2102","Beat it three times by simply clustering the boats together. Assumed that any program which will be 'good' at Battleship will also be one that will have an efficient way of…",{"value":90,"source":49,"evidence":91},"Page requires JavaScript and fails with cookies disabled",[92],{"id":93,"by":94,"text":95},"8346599","jaachan","I'm just getting \"Please enable Javascript\" Checking out the console I'm getting two \"SecurityError: The operation is insecure.\" errors during the localStorage access, probably…",[97,104],{"value":98,"source":49,"evidence":99},"Show the bot's shots with a transition animation",[100],{"id":101,"by":102,"text":103},"8345452","amcnett","Fun. It'd be nice if there were some kind of transition to display the bot's shots.",{"value":105,"source":49,"evidence":106},"Hex grid variant with proximity feedback",[107],{"id":108,"by":109,"text":110},"8345506","amenghra","I always wondered if playing on a hex-grid with some feedback on how close is the nearest ship would make the game more interesting?",[112],{"value":113,"source":49,"evidence":114},"Are ships allowed to touch?",[115,119],{"id":116,"by":117,"text":118},"8345694","frozenport","Isn't there a rule that ship can't touch?",{"id":120,"by":121,"text":122},"8345987","jmah","Not that I can see here: http:\u002F\u002Fwww.hasbro.com\u002Fcommon\u002Finstruct\u002Fbattleship.pdf",[],{"comments":42,"answered":32,"key":125},[126],{"id":127,"text":128},"8346478","The Ship.DIRECTION_VERTICAL and Ship.DIRECTION_HORIZONTAL are correct. :) It just seems backward because by a quirk of how the the grid cells are generated in JS, the x-direction…",{"commenters":15,"max_depth":130,"maker_replies":42,"first_comment_mins":131,"lifespan_hours":132},2,17,26,[134,136,137,139,141,143,144,146,148,150,154,158,160,163,165,170],[78,32,42,135,79,32],"project\u002Fcritical\u002Fperformance",[82,32,42,135,83,32],[52,42,37,138,53,32],"project\u002Fneutral\u002Fdocs",[127,42,32,140,11,42],"maker\u002Fneutral\u002Fdesign",[108,130,37,142,109,32],"project\u002Fneutral\u002Fidea",[86,37,42,135,87,32],[70,31,33,145,71,32],"project\u002Fpositive\u002Fperformance",[116,33,37,147,117,32],"project\u002Fneutral\u002Fdesign",[120,33,32,149,121,32],"commenter\u002Fneutral\u002Fdesign",[151,152,33,145,153,32],"8345501",6,"wxm",[155,152,32,156,157,32],"8345522","commenter\u002Fneutral\u002Fnone","have_faith",[101,159,37,147,102,32],7,[93,161,42,162,94,32],8,"project\u002Fcritical\u002Fexecution",[62,164,33,145,63,32],9,[166,167,42,168,169,32],"8345927",10,"project\u002Fcritical\u002Fnone","kordless",[66,171,33,145,67,32],11,[],[174,179,184,189,194,199],{"id":175,"name":176,"points":177,"category":178},"8356778","ParseHub",143,"data",{"id":180,"name":181,"points":182,"category":183},"8334767","Paths.js",86,"languages",{"id":185,"name":186,"points":187,"category":188},"8355876","Waffle",68,"consumer_social",{"id":190,"name":191,"points":192,"category":193},"8361258","Beyondpad",59,"productivity",{"id":195,"name":196,"points":197,"category":198},"8355721","Branch",57,"infrastructure",{"id":200,"name":201,"points":202,"category":178},"8340109","zfs-snap-diff",50,false,"v2",{"id":206,"name":5,"line":6,"ai":203,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":207,"top":18,"kw":208,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":209,"url":9,"mix":210,"praise":59,"objection":75,"sub":21},8344877,-0.03,[24,25,26,27],"1130315305031515",[31,31,32,33],1793990912430]