sim-ware / BattleShip

BattleShip game in JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-refactor getShipCoordinates to not repeat loop

-turn ship plotting code into functions

OOP

          1 Game
             |
     Player1----Player2
        |          |
      Grid        Grid
     /  |  \    /  |  \
     |  |  |    |  |  |
     B  D1 D2   B  D1 D2

-game class

-player class

-grid class

-ship class

FUNCTIONS will become class functions

FREEDATA e.g. movesSoFar - will become class attributes

About

BattleShip game in JS


Languages

Language:JavaScript 100.0%