Hey, I started on making an in-depth hockey simulator...
Planning on making a complex merge of NHL 2004, http://www.whatifsports.com, and my own idea of making it very interacting (players from around world under one GM) ... whatifsports uses asp and I'm wondering if the info is run off a seperate server using Visual?
Just beta/scrap, but even faceoffs fairly complex/realistic
function doFaceoff($hcenter, $acenter){
global $user, $period, $gametime, $home, $away, $faceoffs, $leverage;
//- H/A faceoff chances [15% AGI, 15% BAL, 70% FO]
$hfo = round(($this->player[$hcenter][balance]*0.15)+($this->player[$hcenter][agility]*0.15)+($this->player[$hcenter][faceoffs]*0.70));
$afo = round(($this->player[$acenter][balance]*0.15)+($this->player[$acenter][agility]*0.15)+($this->player[$acenter][faceoffs]*0.70));
//- If rand < home, home wins
$chance = rand(1, $hfo+$afo);
if($chance <= $hfo){
$chance = 1;
} else {
$chance = 2;
}
if($chance == 1){
$leverage += 2;
$winner = $hcenter;
$loser = $acenter;
$home['fowon']++;
$teamToAdd = $home['id'];
$this->player[$hcenter]['fowon']++;
} else {
$leverage -= 2;
$winner = $acenter;
$loser = $hcenter;
$away['fowon']++;
$teamToAdd = $away['id'];
$this->player[$acenter]['fowon']++;
}
$faceoffs++;
$this->player[$hcenter]['fotaken']++;
$this->player[$acenter]['fotaken']++;
$winner2 = $user->getUser($winner);
$loser2 = $user->getUser($loser);
doMessage($winner2.' won the faceoff against '.$loser2.'.');
$this->addBoxScore($winner2.' won the faceoff against '.$loser2.'.', $teamToAdd, $period, $gametime, 1);
return $winner;
}
Not really sure, and info or guesses would be helpful. Would my PHP/MySQL version only be capable of 500-1000 members tops?