Input
Number of ships:4 Carrier,C3,H Destroyer,A8,H Patrol Boat,F6,V Submarine,H10,H Shots:C1,E1,B2,A3,D3,B4,A6,E6,F6,G6,F7,B7,H10,I9
Output
|A|B|C|D|E|F|G|H|I|J| 1 | | |X| |X| | | | | | 2 | |X| | | | | | | | | 3 |X| |C|X|C|C|C| | | | 4 | |X| | | | | | | | | 5 | | | | |X|X|X| | | | 6 |X| | | |X|X|X| | | | 7 | |X| | |X|X|X| | | | 8 |D|D|D| |X|X|X| | | | 9 | | | | | | | | |X| | 10| | | | | | | |X|S|S| Your Board Status: Carrier at C3: ****- Destroyer at A8: *** Patrol Boat at F6: -- Submarine at H10: **-
Input
Number of ships:1 Carrier,H10,V Shots:A7
Output
ERROR: At least one warship's location exceeds board's dimensions
Input
Number of ships:3 Carrier,C4,H Battleship,D3,V Submarine,F5,H Shots:D7
Output
ERROR: There is overlap between at least two ships
Input
Number of ships:1 Carrier,D3,H Shots:L17
Output
ERROR: There is at least one shot going outside the board