run_actions: Run actions

View source: R/lang_wrappers_en.R

run_actionsR Documentation

Run actions

Description

This function produces the animation that shows all actions performed by Karel since its world was generated by generate_world.

Usage

run_actions(loop = FALSE)

Arguments

loop

A logical value TRUE or FALSE indicating if the animation should repeat itself after finished or not (defaults to FALSE).

Value

Produces an animation with gganimate.

See Also

generate_world

Examples

generate_world("mundo001")
move()
pick_beeper()
turn_left()
put_beeper()
if (interactive()) run_actions()


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