Battleship -
JavaScript browser game

Battleship game which show my fundamental knowledge of JavaScript language.

The computer has a simple artificial intelligence, after first hit AI will shoot near the destroyed cell and try to destroy the whole ship. Computer knows that ships must have a one cell distance. Player must wait until the computer finishes the turn, otherwise the game may freeze. The project has only 2 files: .js and .html.

Project from scratch. I didn't follow any tutorial to create this project. I used the knowledge I gained during my studies. You can download and see the code.