original_docstring: 
          Build and return a ship object to the game instance 
          
docstring: Build and return a ship object to the game instance
docstring_tokens: Build and return a ship object to the game instance
code: def new_ship(cls, name: str, position: Position = Position(10, 10)):
          """
          Build and return a ship object to the game instance 
          """
          if name not in cls._ship_prototypes:
              raise RuntimeError(f"Unknown ship prototype: {name}")
  
          ship = Ship(cls._ship_prototypes[name])
          ship.set_position(position)
          return ship
code_tokens: def new_ship ( cls , name : str , position : Position = Position ( 10 , 10 ) ) : if name not in cls . _ship_prototypes : raise RuntimeError ( f"Unknown ship prototype: {name}" ) ship = Ship ( cls . _ship_prototypes [ name ] ) ship . set_position ( position ) return ship
short_docstring: Build and return a ship object to the game instance
short_docstring_tokens: Build and return a ship object to the game instance
comment: """
          Build and return a ship object to the game instance 
          """