color method

bool color(
  1. int color
)

Color the current position.

Implementation

bool color(int color) {
  if (_shape.validatePosition(move.column, move.row)) {
    _shape.grid[move.row][move.column] = color;

    return true;
  }

  return false;
}