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