Shuffle Board
Shuffle entire board or specific row or column.
Shuffle Board Arguments
parameters | Type | Default | Weight | Description |
---|---|---|---|---|
Array | number | row | optional | |
pos | number | Auto | required / optional | line pos (start with 0) |
reverse | number | false | optional | |
callback | number | - | optional | |
isFallDown | number | true | optional | |
fallCallback | number | - | optional | |
isreplenish | number | true | optional | |
replenishCallback | number | - | optional | |
removeFrom | Array or Index Number | 0 | optional |
Code Example
import { shuffle } from '<Path to BoardPlugin>';
// then whenever needed
setInterval(() => {
boards.itemsConfig[1].skip = (defaultItem.skip);
shuffle();
// OR
shuffle(null, {
col: {start: 0, end: 1},
});
// OR
shuffle(null, {
row: {start: 0, end: 1},
});
}, 300);