put_hor_walls | R Documentation |
Helper function for generate_open_moves()
. It takes the available data
for a piece of horizontal wall (x and y coordinates of its beginning point
and its length) and produces a dataset with the positions and directions of
prohibited moves for Karel because of this wall.
put_hor_walls(x, y, lgth)
x, |
y x and y coordinates of the beginning point of the wall |
lgth |
length of the wall |
A lgth x 3 dataset with coordinates where Karel can't move and the direction (side) towards it can't move because of this piece of horizontal wall.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.