turtle_bounce: Bouncing Turtle (Turtle Graphics)

View source: R/turtle_bounce.R

turtle_bounceR Documentation

Bouncing Turtle (Turtle Graphics)

Description

A turtle walks randomly, but bounces back from the edge of its containing field.

Usage

turtle_bounce(side = 60, step= 10)

Arguments

side

side-lengths of the containing square

step

length of one turtle step (side-length/2 must be a multiple of step).

Value

side effects

Author(s)

Homer White homerhanumat@gmail.com

Examples

## turtle_bounce(side = 80, step = 10)

homerhanumat/bcscr documentation built on Jan. 14, 2023, 4 a.m.