/** * Does all the interaction with the screen */ private function setup() { // Clear the screen system('clear'); // Welcome people, because it's polite Talk::say('---------------------------------------' . PHP_EOL . 'Welcome to Snap' . PHP_EOL . '---------------------------------------'); // Invite your players to enter their names $players = Talk::ask('Enter the player names separated by commas;'); // Get those son-bitches added to the game! $this->addPlayers(explode(',', $players)); }