henrylin03 / battleship

Battleship game in your browser, written in JavaScript
http://henrylin.io/battleship/
MIT License
0 stars 0 forks source link

ships are divs and not just coloured squares #18

Open henrylin03 opened 2 months ago

henrylin03 commented 2 months ago

at the moment, each square on the grid is an object that contains property as to what type of ship it is (if there is not ship, then the .shipType is null)

in order to place ships on the board (#11) and use svgs (#10), we need to make sure it isn't just a background-colour change to the square, but instead, the object is actually placed onto the board