init method

void init(
  1. int size
)

Implementation

void init(int size) {
  location = List.filled(size, 0);
  setAllLocations(Location.NONE);
}