This chapter discussed how to convert strings into integers using the parseInt() function. The game utilized "for" loops to check if the ships were hit or not, and would end the code if the ship was hit. There was also a bug that you could hit the same place multiple times and you would win since the number of hits was reached.
No comments:
Post a Comment