Create battleshipJS.js

Variable explanation:
user = position of the ships
userGuessed = what coordinates the user guessed
userHit = The coordinates of the guesses the user took that hit
userX = used to set up the board horizontal value
userY = used to set up the board vertical value
userHitValue = how many times the user has been hit (to figure out when the game ends)
userGuessX = the horizontal coordinate of the user's guesses
userGuessY = the vertical coordinate of the user's guesses
userGuessGood = this checks and makes sure that has not already been guessed

All the others ones just say cpu infront of it instead of user and does the same thing, but for the cpu.


This definartly needs some work. All the alerts are really just for us right now in the alpha testing stage. Once we put it into HTML, they won't be needed.