public function display()
    {
        $message = '';

        $message .= $this->getLineSeparator();
        foreach ($this->board as $i => $row) {
            $message .= $this->getRow($i, $row);
        }

        $message .= $this->getPlayers();
        $message .= $this->getLastMove();

        $this->writeOutput($message);
    }
public function display()
    {
        $message = '';

        $message .= $this->getLineSeparator();
        foreach ($this->board as $i => $row) {
            $message .= $this->getRow($i, $row);
        }

        $message .= $this->getPlayers();
        $message .= $this->getLastMove();

        $this->writeOutput($message);
    }
public function display ( ) { $ message = '' ; $ message .= $ this -> getLineSeparator ( ) ; foreach ( $ this -> board as $ i => $ row ) { $ message .= $ this -> getRow ( $ i , $ row ) ; } $ message .= $ this -> getPlayers ( ) ; $ message .= $ this -> getLastMove ( ) ; $ this -> writeOutput ( $ message ) ; }
Draws the board
Draws the board