Skip to contents

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

Homer White homerhanumat@gmail.com

Examples

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