get_pkg_env | R Documentation |
This function returns the environment called pkg_env created by the package. It's useful for debugging and checking. It's an internal function.
get_pkg_env()
pkg_env
is an environment created inside the package to store
and share between functions all the objects related to Karel's world and
its state. Since the functions that will be used by the students should be
simple and without arguments (for example, move()
), these functions
modify internally pkg_env
.
The components of this environment are:
nx
: TODO
ny
:
hor_walls
:
ver_walls
:
open_moves
:
karel
:
dir_now
:
x_now
:
y_now
:
moment
:
beepers_any
:
beepers_bag
:
beepers_now
:
beepers_all
:
base_plot
:
An enviroment with objects that represent Karel's world.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.