Problem:
In a variant of the game of Battleship, Anna places an aircraft carrier (which we can think of as a rectangle) on a grid, either vertically or horizontally, without showing it to Jacopo. Jacopo tries to hit the aircraft carrier, giving each time the coordinates of a square within the grid. If the square he has chosen is among those covered by the aircraft carrier, it is hit, otherwise it is missed. How many shots must Jacopo fire at minimum to be sure of hitting it at least once?
