Battleship Web Game
This Battleship game was my first project in web development. The code isn't pretty (alright, its ugly)
but it works. I'm including it in my portfolio because it shows multiple aspects of web development including:
- Game grid generated by JavaScript that uses CSS
- User input in the form of text, select options, and buttons
- User input in the form of mouse clicks
- Dynamic modification of HTML using innerHTML and DOM functions
- Use of XMLHttpRequest to load XML data
- HTML audio tags
- Game logic code to play game and simulate AI turns
Click here to download my code in a zip file. Click here
to launch the game in a new window.