GridWorldIterable constructor

GridWorldIterable(
  1. GridWorld _gw,
  2. {int limit = 50,
  3. bool snapshots = false}
)

Make a iterable with reasonable defaults.

Implementation

GridWorldIterable(this._gw, {this.limit = 50, this.snapshots = false})
    : assert(_gw != null && limit >= 0, 'needs a world and postive limit');