#NEWLINE# def getPossibleMoves( self ) : #NEWLINE# #INDENT# currentPosition = self . position #NEWLINE# directions = [ C ( 1 , 1 ) , C ( 1 , ( - 1 ) ) , C ( ( - 1 ) , 1 ) , C ( ( - 1 ) , ( - 1 ) ) ] #NEWLINE# for direction in directions : #NEWLINE# #INDENT# for move in self . movesInDirectionFromPos ( currentPosition , direction , direction . side ) : #NEWLINE# #INDENT# ( yield move )