def setup_ships(self, size, player, count):
    '\n        Setup all the ships of a particular size for a certain player.\n\n        Sets up all of the length-n size ships for a player.\n        Count is not updated in-place.\n\n        Parameters\n        ----------\n        size : int\n            Length of the ships.\n        player : int\n            Determines which player to assign the ships to. Zero-indexed.\n        count : int\n            Current ship count for internal tracking use.\n\n        Returns\n        -------\n        int\n            The updated cumulative ship count.\n        '
    for i in range(self.settings[('%d_ships' % size)]):
        error = ''
        while True:
            self.print_board(player)
            pos = Utils.grid_pos_input(self.height, self.width, question=(error + ("\nWhere do you want to place ship '%s' (%d-long)?" % (letters[count], size))).strip())
            direction = Utils.num_input('Which direction?', 'Horizontal', 'Vertical')
            error = self.setup_ship(pos, direction, player, count, size)
            if (error is None):
                break
        count += 1
    return count
Setup all the ships of a particular size for a certain player.

Sets up all of the length-n size ships for a player.
Count is not updated in-place.

Parameters
----------
size : int
    Length of the ships.
player : int
    Determines which player to assign the ships to. Zero-indexed.
count : int
    Current ship count for internal tracking use.

Returns
-------
int
    The updated cumulative ship count.
def setup_ships(self, size, player, count):
    '\n        Setup all the ships of a particular size for a certain player.\n\n        Sets up all of the length-n size ships for a player.\n        Count is not updated in-place.\n\n        Parameters\n        ----------\n        size : int\n            Length of the ships.\n        player : int\n            Determines which player to assign the ships to. Zero-indexed.\n        count : int\n            Current ship count for internal tracking use.\n\n        Returns\n        -------\n        int\n            The updated cumulative ship count.\n        '
    for i in range(self.settings[('%d_ships' % size)]):
        error = 
        while True:
            self.print_board(player)
            pos = Utils.grid_pos_input(self.height, self.width, question=(error + ("\nWhere do you want to place ship '%s' (%d-long)?" % (letters[count], size))).strip())
            direction = Utils.num_input('Which direction?', 'Horizontal', 'Vertical')
            error = self.setup_ship(pos, direction, player, count, size)
            if (error is None):
                break
        count += 1
    return count