mlpy.environments.gridworld.GridWorld.move_coords

GridWorld.move_coords(cell, move)[source]

Returns the coordinates of the neighboring cell the agent transitions to following the given move.

Parameters:

cell : Cell

The current cell.

move : int

The action performed.

Returns:

Point2D :

The x-/y-coordinates of the resulting cell.