src/Board.php
public function setValue(array $position, $value)
    {
        if (!$this->validatePosition($position)) {
           return false;
        }

        list ($xPos, $yPos) = $position;

        if (!empty($this->board[$xPos][$yPos])) {
            return false;
        }

        $this->board[$xPos][$yPos] = $value;

    }
public function setValue(array $position, $value)
    {
        if (!$this->validatePosition($position)) {
           return false;
        }

        list ($xPos, $yPos) = $position;

        if (!empty($this->board[$xPos][$yPos])) {
            return false;
        }

        $this->board[$xPos][$yPos] = $value;

    }
public function setValue ( array $ position , $ value ) { if ( ! $ this -> validatePosition ( $ position ) ) { return false ; } list ( $ xPos , $ yPos ) = $ position ; if ( ! empty ( $ this -> board [ $ xPos ] [ $ yPos ] ) ) { return false ; } $ this -> board [ $ xPos ] [ $ yPos ] = $ value ; }
Set value to a particular position on board

@param array $position
@param $value

@
Set value to a particular position on board