Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calculateWinnings($position) {
- echo $position[1].$position[2].$position[3].$position[4];
- die();
- if (($position[1]==$position[2] && $position[1]==$position[3]) ||
- ($position[1]==$position[2] && $position[1]==$position[4]) ||
- ($position[1]==$position[3] && $position[1]==$position[4]) ||
- ($position[2]==$position[3] && $position[2]==$position[4])) {
- echo "Bob, you have 3 numbers right.";
- } elseif ($position[1]==$position[2] && $position[2]==$position[3] &&
- $position[3]==$position[4]) {
- echo "Congratulations Bob! You have 4 numbers right.";
- } elseif
- (($position[1]==$position[2] && $position[3]==$position[4]) ||
- ($position[1]==$position[3] && $position[2]==$position[4]) ||
- ($position[1]==$position[4] && $position[2]==$position[3])) {
- echo "Bob, you have 2 pairs of numbers right.";
- } elseif
- (($position[1]==$position[2]) || ($position[1]==$position[3]) ||
- ($position[1]==$position[4]) || ($position[2]==$position[3]) ||
- ($position[2]==$position[4]) || ($position[3]==$position[4])) {
- echo "Bob, you have 2 numbers right.";
- } else {
- echo "You did not win but you should spin again.";
- }
- }
- showGameHead($time);
- if ($cashout) {
- echo $position[1].$position[2].$position[3].$position[4];
- calculateWinnings($position);
- otherChoices($position,$time,$i,$PHP_SELF);
- die();
- }
- if (!isset($_POST['submit']) || ($i==1)) {
- $time = date("H:i");
- spinwheels(1,1,1,1);
- imageSwitch($position);
- showWheels($img1,$img2,$img3,$img4);
- showChoices($position,$time,$i);
- } elseif ($i<4) {
Add Comment
Please, Sign In to add comment