GamesEngine.Validations.GridValidations (games_engine v0.1.0)
Functions with perform validations of a game grid
Summary
Functions
Ensures a linear index is within the bounds of the supplied grid
Functions
Link to this function
ind_within_bounds(ind, arg)
@spec ind_within_bounds( non_neg_integer(), {non_neg_integer(), non_neg_integer()} ) :: :ok
Ensures a linear index is within the bounds of the supplied grid