=($FMTS*$b)) && ($b>=$SMTT*$c) )) { //transport from c to b if ($b<($SMTT*$c) && $c>0) { $b++; $c--; } //transport from b to a if ($a<($FMTS*$b) && $b>0) { $a++; $b--; } } $RetVal=array(); $RetVal[0]=0; //empty $RetVal[1]=$a; //1st place $RetVal[2]=$b; //2nd place $RetVal[3]=$c; //3th place return $RetVal; } $BODY.='
'; $BODY.=''; $BODY.='Einsatz: '; $BODY.='
"; $BODY.='Erster bekommt mindestens '; $BODY.='mehr als der Zweite
"; $BODY.='Zweiter bekommt mindestens '; $BODY.='mehr als der Dritte
"; $BODY.=''; $BODY.='
'; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; for ($i=4; $i<=20; $i++) { $Ret = GetDotByPott($Stake*$i); $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; $BODY.= ""; } $BODY.= "
SpielerPott1.Platz2.Platz3.Platz
".$i."".($i*$Stake)."€".$Ret[1]."€".$Ret[2]."€".$Ret[3]."€
"; ?>