check_walls: Check the walls user's provided world

View source: R/helpers.R

check_wallsR Documentation

Check the walls user's provided world

Description

This is a helper function to check ver_walls and hor_walls. It's called by check_user_world twice.

Usage

check_walls(dataset, name, nx, ny)

Arguments

dataset

Either hor_walls or ver_walls

name

Character string: "hor_walls" or "ver_walls"

nx,

ny Size of the world

Value

If a misespecification is found, this function produces a stop and provides a descriptive error message.


karel documentation built on March 27, 2022, 1:05 a.m.