A JavaScript AI that beats humans at battleship.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
css https in css import Jun 9, 2016
img New Favicons Aug 2, 2014
js Allow random placement to have customizable grid size Nov 18, 2017
.gitignore Better opening book Sep 8, 2014
LICENSE.txt Update LICENSE.txt Jul 13, 2014
README.md Update GitHub URLs Jun 1, 2017
index.html Update GitHub URLs Jun 1, 2017

README.md

battleboat

A JavaScript AI that beats humans at battleship.

Play the game here: https://billmei.github.io/battleboat

If you've forked a copy of this repo or are playing around with the code on the https://billmei.github.io/battleboat page, please be nice and don't hack the Stats object. I'm using Google Analytics to collect info about the AI's win/loss percentage in order to improve the bot, so if you do look around, I kindly ask that you don't give it bad data. Thanks :)

If you want to try stuff out, run setDebug(true); in the console before doing anything. You'll also get access to some cool features.