#NEWLINE# def move( self , di , dj ) : #NEWLINE# #INDENT# ( i , j ) = self . position #NEWLINE# i = limit ( ( i + di ) , 0 , ( self . _table . height - 1 ) ) #NEWLINE# j = limit ( ( j + dj ) , 0 , ( len ( self . _table . table [ i ] ) - 1 ) ) #NEWLINE# self . position = ( i , j )