Build your own Battleship AI
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
index.html
script.js
style.css

README.md

Battleship AI Practice

Two functions are defined: setupStrategy and playStrategy.

They are really simple functions right now, they play randomly with no real strategy.

Try to improve them.

Steps:

  1. Fork this repo and clone your fork.
  2. python -m SimpleHTTPServer
  3. Visit localhost:8000
  4. Modify setupStrategy or playStrategy in script.js
  5. Refresh your browser and try your changes.
  6. Goto 4.
  7. Commit and push to the gh-pages branch.
  8. See your results LIVE at https://yourgithubname.github.io/battleship-ai