A craps simulation with rolls and players

Place bets do not work when the point is off.

Players bet as follows:
Player 1: Bets $6 on the 6 and 8 as place bets.
Player 2: Bets $5 on the pass line, and backs it up with $5.
Player 3: Bets $5 on the pass line, and backs it up with $10.
Player 4: Bets $5 on the pass line, and backs it up with $15.

0) { ?> The first rolls:
0 && !$betsOn[1] && ($curRoll == 6 || $curRoll == 8)) { // we've overcounted our total bets $totalBets[0] -= 6; } } if ($betsOn[1]) { $money[1] += 10; $money[2] += 15; $money[3] += 20; } // the point was just made, and we haven't backed up our bet yet elseif ($THE_POINT > 0) { $money[1] += 5; $money[2] += 5; $money[3] += 5; } ?>

  Player
1
Total Bets
Change in Money