battleship/参考项目/battleboat
2022-09-14 17:34:39 +08:00
..
img gitpush 2022-09-14 17:34:39 +08:00
battleboat.js gitpush 2022-09-14 17:34:39 +08:00
index.html gitpush 2022-09-14 17:34:39 +08:00
README.md gitpush 2022-09-14 17:34:39 +08:00
styles.css gitpush 2022-09-14 17:34:39 +08:00

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.