Discussion forum

Forum thread
Rugby Points Question

Apr
05
14:23
How would you score it if you predicted the winner but was outside the 50pt margin.
Example..I pick a team to win by 55pts and they win by 4pts thus making it a 51pt
m

Cheers
[ ]
Apr
05
15:14
If you predict the winning team you'll get at least a minumum of points.
Currently:
- All Ice hockey prediction games: 1 point
- All Baseball prediction games: 1 point
- All Curling prediction games: 1 point
- All Handball prediction games: 5 points
- All Basketball prediction games: 10 points
- All American football prediction games: 10 points
- Six Nations, Heineken Cup, Super Rugby, Super Rugby: 10 points
- AFL, NRL: 25 points
[ ]
Apr
05
17:01
What kevin actually means Klaus is

In a Super League game ( Rugby League ) if you go for a team to win by 1 point and they win by 51 points you score 1 point. How many points would you score if you went for a win by 1 point and they won by 60 points ? Is it still 1 ?
[ ]
Apr
05
18:19
Understood.
He'll get the minumum: 10 points.
[ ]
Apr
05
20:39
So the minimum is 10 points not 1 ?
[ ]
Apr
05
20:58
As I listed before, the minimum for Rugby prediction games is 10.
[ ]
Apr
05
21:09
Cool. I only asked because on the game prediction page it says 10-1 as lowest points you see. Cheers for clearing it up ta
[ ]
Apr
05
21:13
One problem with the old version is that the explaining text/rules are really sparsely. There has been a lot of new prediction games in the last years...
The new verion will hopefully more clear.
[ ]
Apr
05
21:19
Here is the rather simple function that does the computation:

function points_single_match_plusminus($eh, $ea, $th, $ta, $MAXP, $MINP, $POINTS_WHEN_DRAW) {

# eh: points home team
# ea: points away team
# th: prediction home team
# ta: prediction away team

# MAXP: Maximum possible points for one prediction
# MINP: Minimum guaranteed points for one prediction
# POINTS_WHEN_DRAW: 1=yes 0=no (yes is currently only set for handball prediction games)


if ( (($eh > $ea) && ($th > $ta)) || (($eh < $ea) && ($th < $ta)) ) {
$erg = $eh-$ea; # Result: (points home team - points away team)
$tip = $th-$ta; # Prediction
if ($MAXP - abs($erg-$tip) < $MINP) {
return $MINP;
} else {
return $MAXP - abs($erg-$tip);
}
} else if (($POINTS_WHEN_DRAW == 1) && ($eh == $ea)) {
$erg = $eh-$ea;
$tip = $th-$ta;
if ($MAXP - abs($erg-$tip) < $MINP) {
return $MINP;
} else {
return $MAXP - abs($erg-$tip);
}
} else {
return 0;
}
}


The values $MAXP, $MINP and $POINTS_WHEN_DRAW are stored in the database.

Here is a list of the current contests which use this function to compute the score:

+--------------------------------+---------+------+-----+------------------+
| contest | season | MAXP | MINP| POINTS_WHEN_DRAW |
+--------------------------------+---------+------+-----+------------------+
| Ice Hockey World Championships | 2014 | 10 | 1 | 0 |
| NBA | 2013/14 | 50 | 10 | 0 |
| KHL | 2013/14 | 10 | 1 | 0 |
| Heineken Cup | 2013/14 | 50 | 10 | 0 |
| Euroleague Basketball | 2013/14 | 50 | 10 | 0 |
| NHL | 2013/14 | 10 | 1 | 0 |
| Super Rugby | 2014 | 50 | 10 | 0 |
| Aviva Premiership Rugby | 2013/14 | 50 | 10 | 0 |
| Major League Baseball | 2014 | 10 | 1 | 0 |
| Super League | 2014 | 50 | 10 | 0 |
| US College Basketball | 2013/14 | 50 | 10 | 0 |
| AFL | 2014 | 75 | 25 | 0 |
| NRL | 2014 | 75 | 25 | 0 |
| World Men's Curling Champ. | 2014 | 10 | 1 | 0 |
+--------------------------------+---------+------+-----+------------------+
[ ]
Apr
07
05:10
well that clears that up !!!!
[ ]
Apr
05
15:25
Thanks :-)
[ ]
You're on a page of the prediction game for: Cricket / ECB T20 Cup 2016. As in every prediction game on this site, there are multiple contests.