src/Player.php
public function lastMoveIsPlayed()
    {
        $moves = $this->getMoveHistory();
        $offset = count($moves) - 1;
        $last_item = $this->moves[$offset];
        $this->moves[$offset][key($last_item)] = true;
        return $this;
    }
public function lastMoveIsPlayed()
    {
        $moves = $this->getMoveHistory();
        $offset = count($moves) - 1;
        $last_item = $this->moves[$offset];
        $this->moves[$offset][key($last_item)] = true;
        return $this;
    }
public function lastMoveIsPlayed ( ) { $ moves = $ this -> getMoveHistory ( ) ; $ offset = count ( $ moves ) - 1 ; $ last_item = $ this -> moves [ $ offset ] ; $ this -> moves [ $ offset ] [ key ( $ last_item ) ] = true ; return $ this ; }
Mark Last Move As Played
@return $this
Mark Last Move As Played