$this->player4[] = array_shift($this->deck); } } public function showPlayers() { print_r($this->player1); print_r($this->player2); print_r($this->player3); print_r($this->player4); } } /** * creating the instance of class game * creates the sequence of the cards * displays the created sequence * suffles the sequence of cards into random sequence * randomly displays the cards * distributes 7 cards among the 4 players * displays the distributed cards to the players. */ $game = new game(); $game->createSequence(); $game->showSequence(); $game->shuffleCards(); $game->showSequence(); $game->distributeCards(); $game->showPlayers(); ?>