#NEWLINE# def getReward( self ) : #NEWLINE# #INDENT# ' compute and return the current reward (i.e. corresponding to the last action performed) ' #NEWLINE# if ( self . env . goal == reward . env . perseus ) : #NEWLINE# #INDENT# self . env . reset ( ) #NEWLINE# reward = 1.0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# reward = 0.0 #NEWLINE# #UNINDENT# return reward