A very very simple Battleship game written in plain JavaScript: https://github.com/LearnTeachCode/Battleship-JavaScript
Read about the game and its rules here: https://en.wikipedia.org/wiki/Battleship_(game)
Useful references:
Useful references:
Useful references:
Useful references:
Play the game here: http://learntocodela.github.io/Battleship-JavaScript/
Features to implement next:
Display game messages within the HTML page instead of using alert()
Randomize placement of the ships at the start of each game
Make better graphics, maybe add sound effects?
Make a 2-player version of the game!