#NEWLINE# def step( self , a ) : #NEWLINE# #INDENT# s = reward . state #NEWLINE# ns = self . _stepFourState ( s , a ) #NEWLINE# self . state = ns . copy ( ) #NEWLINE# terminal = self . isTerminal ( ) #NEWLINE# reward = self . _getReward ( a ) #NEWLINE# possibleActions = self . possibleActions ( ) #NEWLINE# return ( reward , ns , terminal , possibleActions )