Exemplo n.º 1
0
 public function completeCurrentRound()
 {
     $this->round_points = 11 - $this->round_guessed_count;
     $elapsedSeconds = Carbon::now()->diffInSeconds($this->round_start_ts);
     $this->round_points = max($this->round_points - floor($elapsedSeconds / Game::getDeductRoundPointInterval()), 0);
     if (!$this->round_correctness) {
         $this->round_points = 0;
     }
     $this->total_points += $this->round_points;
 }