src/GameOfLife/Inputs/BoardEditor/BoardEditor.php
/**
     * Launches the board editor session.
     *
     * @throws \Exception The exception when the option "help" could not be parsed
     */
Launches the board editor session.
@throws \Exception The exception when the option "help" could not be parsed
Launches the board editor session . @throws \ Exception The exception when the option " help " could not be parsed
public function launch()
    {
        $isInputFinished = false;
        $message = "Say \"options\" to see a list of available options.";
        $this->outputBoard($message);
        while (! $isInputFinished)
        {
            $this->addBoardToHistory($this->board);
            $line = $this->readInput("> ");
            try
            {
                $isInputFinished = $this->optionHandler->parseInput($line);
            }
            catch (\Exception $_exception)
            {
                $this->outputBoard("Error while parsing the option: " . $_exception->getMessage());
            }
        }
    }
public function launch ( ) { $ isInputFinished = false ; $ message = " Say  \" options \"  to see a list of available options. " ; $ this -> outputBoard ( $ message ) ; while ( ! $ isInputFinished ) { $ this -> addBoardToHistory ( $ this -> board ) ; $ line = $ this -> readInput ( " >  " ) ; try { $ isInputFinished = $ this -> optionHandler -> parseInput ( $ line ) ; } catch ( \ Exception $ _exception ) { $ this -> outputBoard ( " Error while parsing the option:  " . $ _exception -> getMessage ( ) ) ; } } }
Launches the board editor session.
Launches the board editor session .