Football Betting Odds

부분 유료
분류별 betodds | 업데이트됨 hace un mes | Sports
인기

9.7 / 10

지연 시간

48ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

odds explain

Rapid account: Cbr 1000 Rrvsgsx
cbr1000rrvsgsx
hace un año

Hello,can you explain what is 1-hcap-1–1,1-hcap-0–1,…

Rapid account: Kingemkurdam
kingemkurdam Commented hace 6 meses

They are handicap odds.

hcap - ( Handicap Team ) - ( Handicap value )

hcap-1-–1 = Home Team Win , Handicap Value is -1
hcap-2-+1 = Away Team Win, Handicap Value is +1

hcap-0-+1 = Draw , Handicap Value is +1

I am sharing some php code to help you to understand calculation of the bet.

     // self::$bet can be like this : 1-hcap-1-+1
     // self::$result=['fthome'=>3,'ftaway'=>3]
     // function result should be true because we will add handicap value to home team goals.
     // and than score will be 4-3 
     
     function calculate_hcap(){
     preg_match('@1-hcap-(1|0|2)-((-|\+)\d)@', self::$bet, $s);
											if (count($s) != 4) {
													return false;
											}
											$handicap = $s[1];
											$handicapValue = $s[2];

											if ($handicap == 1) {
													self::$result['fthome'] = self::$result['fthome'] + $handicapValue;
													if (self::$result['fthome'] > self::$result['ftaway']) {
															return true;
													}
											}

											if ($handicap == 0) {
													self::$result['fthome'] = self::$result['fthome'] + $handicapValue;

													if (self::$result['fthome'] == self::$result['ftaway']) {
															return true;
													}
											}

											if ($handicap == 2) {
													self::$result['ftaway'] = self::$result['ftaway'] + $handicapValue;
													if (self::$result['fthome'] < self::$result['ftaway']) {
															return true;
													}
											}
					}

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입