code: public function getScore ()
      {
          $this->loadData ();
          $score = $this->data['p_score'];
  
          if ($score == 0 && $this->isPlaying ())
          {
              $this->updateScore ();
          }
  
          return $score;
      }
docs: /*
  Calculate the score for this player