lUpRight method
Color with an L shape with direction up right from a starting position
Requires a list of colors
.
Return true on success.
Implementation
bool lUpRight(List<int> colors, [int? n]) {
if (!super.getCross.validatePosition(move.column, move.row - 2) ||
!super.getCross.validatePosition(move.column + 2, move.row - 2)) {
return false;
}
up(
<int>[
colors[0 % colors.length],
colors[1 % colors.length],
colors[2 % colors.length],
],
3,
);
move.right();
right(<int>[colors[3 % colors.length], colors[4 % colors.length]], 2);
return true;
}