public function dealTurn()
    {
        if ($this->dealer()->communityCards()->count() !== 3) {
            throw RoundException::turnHasBeenDealt();
        }
        if (($player = $this->whosTurnIsIt()) !== false) {
            throw RoundException::playerStillNeedsToAct($player);
        }

        $this->collectChipTotal();

        $seat = $this->table()->findSeat($this->playerWithSmallBlind());
        $this->resetPlayerList($seat);

        $this->dealer()->dealCommunityCards(1);
        $this->actions()->push(new Action($this->dealer(), Action::DEALT_TURN, [
            'communityCards' => $this->dealer()->communityCards()->only(3),
        ]));
    }
public function dealTurn()
    {
        if ($this->dealer()->communityCards()->count() !== 3) {
            throw RoundException::turnHasBeenDealt();
        }
        if (($player = $this->whosTurnIsIt()) !== false) {
            throw RoundException::playerStillNeedsToAct($player);
        }

        $this->collectChipTotal();

        $seat = $this->table()->findSeat($this->playerWithSmallBlind());
        $this->resetPlayerList($seat);

        $this->dealer()->dealCommunityCards(1);
        $this->actions()->push(new Action($this->dealer(), Action::DEALT_TURN, [
            'communityCards' => $this->dealer()->communityCards()->only(3),
        ]));
    }
public function dealTurn ( ) { if ( $ this -> dealer ( ) -> communityCards ( ) -> count ( ) !== 3 ) { throw RoundException :: turnHasBeenDealt ( ) ; } if ( ( $ player = $ this -> whosTurnIsIt ( ) ) !== false ) { throw RoundException :: playerStillNeedsToAct ( $ player ) ; } $ this -> collectChipTotal ( ) ; $ seat = $ this -> table ( ) -> findSeat ( $ this -> playerWithSmallBlind ( ) ) ; $ this -> resetPlayerList ( $ seat ) ; $ this -> dealer ( ) -> dealCommunityCards ( 1 ) ; $ this -> actions ( ) -> push ( new Action ( $ this -> dealer ( ) , Action :: DEALT_TURN , [ 'communityCards' => $ this -> dealer ( ) -> communityCards ( ) -> only ( 3 ) , ] ) ) ; }
Deal the turn card.
Deal the turn card .