/**
  * @return Hand
  */
 public function nextHand()
 {
     if (!$this->won) {
         $this->prevHand = Hand::getHand(mt_rand(0, 2));
     }
     return $this->prevHand;
 }
 /**
  * @return Hand
  */
 public function nextHand()
 {
     $bet = mt_rand(0, $this->getSum($this->currentHandValue));
     if ($bet < $this->history[$this->currentHandValue][0]) {
         $handValue = Hand::GUU;
     } elseif ($bet < $this->history[$this->currentHandValue][0] + $this->history[$this->currentHandValue][1]) {
         $handValue = Hand::CHO;
     } else {
         $handValue = Hand::PAA;
     }
     $this->prevHandValue = $this->currentHandValue;
     $this->currentHandValue = $handValue;
     return Hand::getHand($handValue);
 }