#NEWLINE# @ staticmethod #NEWLINE# def _get_instructions( weight ) : #NEWLINE# #INDENT# if weight : #NEWLINE# #INDENT# if ( weight [ 0 ] == SolarMap . GATE ) : #NEWLINE# #INDENT# instructions = 'Jump gate' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( weight [ 0 ] == SolarMap . WORMHOLE ) : #NEWLINE# #INDENT# [ wh_sig , wh_code , _ , _ , _ , _ ] = weight [ 1 ] #NEWLINE# instructions = 'Jump wormhole {}[{}]' . format ( wh_sig , wh_code ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# instructions = 'Instructions unclear, initiate self-destruct' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# instructions = 'Destination reached' #NEWLINE# #UNINDENT# return wh_sig