plot_static_world: Plot the world at a given time

View source: R/lang_wrappers_en.R

plot_static_worldR Documentation

Plot the world at a given time

Description

This function plots Karel'w wort at the requested time. Initially, time is 1 and with each action that Karel performs, time is incremented by one. Current time is stored in pkg_env$moment. This function is useful for debugging and to get static images to be used in the examples in the handouts for students. It's an internal function, not thought to be used by students, but can be used with karel:::plot_static_world().

Usage

plot_static_world(time)

Arguments

time

The requested time

Value

Prints the plot.

Examples

if (interactive()) karel:::plot_static_world(1)


mpru/karel documentation built on May 12, 2024, 5:16 p.m.