/battleship

Simulation of the battleship game

Primary LanguageGo

Sample problem input 15 size of the Matrix M 2 number of ships 1:2,4:3 Player 1's ship's positions 3:7,5:9 Player 2's ship's positions 2 number of missiles 5:2,9:6 P1's targets 5:5,12:6 P2's targets

output P1's board P2's board P1's successful hits P2's successful hits Who won