Advertisement
fuzzybluerain

Untitled

Sep 2nd, 2021
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.74 KB | None | 0 0
  1. %% 2022 World Cup Qualifers - AFC Third Round, Group B
  2.  
  3. %% Matchday 1 (September 2)
  4. % Japan v Oman @ Suita
  5.  
  6. JPN = poissrnd(2.22);
  7. OMA = poissrnd(1.32);
  8.  
  9. JPNgf = JPNgf + JPN;
  10. OMAga = OMAga + JPN;
  11. OMAgf = OMAgf + OMA;
  12. JPNga = JPNga + OMA;
  13.  
  14. if JPN > OMA
  15. JPNpts = JPNpts + 3;
  16. elseif OMA > JPN
  17. OMApts = OMApts + 3;
  18. else
  19. JPNpts = JPNpts + 1;
  20. OMApts = OMApts + 1;
  21. end
  22.  
  23. % Australia v China PR @ (Doha)
  24.  
  25. AUS = poissrnd(1.59);
  26. CHN = poissrnd(1.36);
  27.  
  28. AUSgf = AUSgf + AUS;
  29. CHNga = CHNga + AUS;
  30. CHNgf = CHNgf + CHN;
  31. AUSga = AUSga + CHN;
  32.  
  33. if AUS > CHN
  34. AUSpts = AUSpts + 3;
  35. elseif CHN > AUS
  36. CHNpts = CHNpts + 3;
  37. else
  38. AUSpts = AUSpts + 1;
  39. CHNpts = CHNpts + 1;
  40. end
  41.  
  42. % Saudi Arabia v Vietnam @ Riyadh
  43.  
  44. KSA = poissrnd(1.78);
  45. VIE = poissrnd(0.72);
  46.  
  47. KSAgf = KSAgf + KSA;
  48. VIEga = VIEga + KSA;
  49. VIEgf = VIEgf + VIE;
  50. KSAga = KSAga + VIE;
  51.  
  52. if KSA > VIE
  53. KSApts = KSApts + 3;
  54. elseif VIE > KSA
  55. VIEpts = VIEpts + 3;
  56. else
  57. KSApts = KSApts + 1;
  58. VIEpts = VIEpts + 1;
  59. end
  60. %% Matchday 2 (September 7)
  61. % Vietnam v Australia @ Hanoi
  62.  
  63. VIE = poissrnd(1.08);
  64. AUS = poissrnd(1.45);
  65.  
  66. VIEgf = VIEgf + VIE;
  67. AUSga = AUSga + VIE;
  68. AUSgf = AUSgf + AUS;
  69. VIEga = VIEga + AUS;
  70.  
  71. if VIE > AUS
  72. VIEpts = VIEpts + 3;
  73. elseif AUS > VIE
  74. AUSpts = AUSpts + 3;
  75. else
  76. VIEpts = VIEpts + 1;
  77. AUSpts = AUSpts + 1;
  78. end
  79.  
  80. % Oman v Saudi Arabia @ Muscat
  81.  
  82. OMA = poissrnd(1.80);
  83. KSA = poissrnd(1.44);
  84.  
  85. OMAgf = OMAgf + OMA;
  86. KSAga = KSAga + OMA;
  87. KSAgf = KSAgf + KSA;
  88. OMAga = OMAga + KSA;
  89.  
  90. if OMA > KSA
  91. OMApts = OMApts + 3;
  92. elseif KSA > OMA
  93. KSApts = KSApts + 3;
  94. else
  95. OMApts = OMApts + 1;
  96. KSApts = KSApts + 1;
  97. end
  98.  
  99. % China PR v Japan @ (Doha)
  100.  
  101. CHN = poissrnd(1.31);
  102. JPN = poissrnd(1.90);
  103.  
  104. CHNgf = CHNgf + CHN;
  105. JPNga = JPNga + CHN;
  106. JPNgf = JPNgf + JPN;
  107. CHNga = CHNga + JPN;
  108.  
  109. if CHN > JPN
  110. CHNpts = CHNpts + 3;
  111. elseif JPN > CHN
  112. JPNpts = JPNpts + 3;
  113. else
  114. CHNpts = CHNpts + 1;
  115. JPNpts = JPNpts + 1;
  116. end
  117. %% Matchday 3 (October 7)
  118. % Australia v Oman @ [Australia]
  119.  
  120. AUS = poissrnd(1.91);
  121. OMA = poissrnd(1.37);
  122.  
  123. AUSgf = AUSgf + AUS;
  124. OMAga = OMAga + AUS;
  125. OMAgf = OMAgf + OMA;
  126. AUSga = AUSga + OMA;
  127.  
  128. if AUS > OMA
  129. AUSpts = AUSpts + 3;
  130. elseif OMA > AUS
  131. OMApts = OMApts + 3;
  132. else
  133. AUSpts = AUSpts + 1;
  134. OMApts = OMApts + 1;
  135. end
  136.  
  137. % China PR v Vietnam @ [China]
  138.  
  139. CHN = poissrnd(1.71);
  140. VIE = poissrnd(0.77);
  141.  
  142. CHNgf = CHNgf + CHN;
  143. VIEga = VIEga + CHN;
  144. VIEgf = VIEgf + VIE;
  145. CHNga = CHNga + VIE;
  146.  
  147. if CHN > VIE
  148. CHNpts = CHNpts + 3;
  149. elseif VIE > CHN
  150. VIEpts = VIEpts + 3;
  151. else
  152. CHNpts = CHNpts + 1;
  153. VIEpts = VIEpts + 1;
  154. end
  155.  
  156. % Saudi Arabia v Japan @ [Saudi Arabia]
  157.  
  158. KSA = poissrnd(1.58);
  159. JPN = poissrnd(1.64);
  160.  
  161. KSAgf = KSAgf + KSA;
  162. JPNga = JPNga + KSA;
  163. JPNgf = JPNgf + JPN;
  164. KSAga = KSAga + JPN;
  165.  
  166. if KSA > JPN
  167. KSApts = KSApts + 3;
  168. elseif JPN > KSA
  169. JPNpts = JPNpts + 3;
  170. else
  171. KSApts = KSApts + 1;
  172. JPNpts = JPNpts + 1;
  173. end
  174. %% Matchday 4 (October 12)
  175. % Japan v Australia @ Saitama
  176.  
  177. JPN = poissrnd(2.01);
  178. AUS = poissrnd(1.26);
  179.  
  180. JPNgf = JPNgf + JPN;
  181. AUSga = AUSga + JPN;
  182. AUSgf = AUSgf + AUS;
  183. JPNga = JPNga + AUS;
  184.  
  185. if JPN > AUS
  186. JPNpts = JPNpts + 3;
  187. elseif AUS > JPN
  188. AUSpts = AUSpts + 3;
  189. else
  190. JPNpts = JPNpts + 1;
  191. AUSpts = AUSpts + 1;
  192. end
  193.  
  194. % Saudi Arabia v China PR @ Saudi Arabia
  195.  
  196. KSA = poissrnd(1.72);
  197. CHN = poissrnd(1.19);
  198.  
  199. KSAgf = KSAgf + KSA;
  200. CHNga = CHNga + KSA;
  201. CHNgf = CHNgf + CHN;
  202. KSAga = KSAga + CHN;
  203.  
  204. if KSA > CHN
  205. KSApts = KSApts + 3;
  206. elseif CHN > KSA
  207. CHNpts = CHNpts + 3;
  208. else
  209. KSApts = KSApts + 1;
  210. CHNpts = CHNpts + 1;
  211. end
  212.  
  213. % Oman v Vietnam @ Muscat
  214.  
  215. OMA = poissrnd(1.92);
  216. VIE = poissrnd(0.89);
  217.  
  218. OMAgf = OMAgf + OMA;
  219. VIEga = VIEga + OMA;
  220. VIEgf = VIEgf + VIE;
  221. OMAga = OMAga + VIE;
  222.  
  223. if OMA > VIE
  224. OMApts = OMApts + 3;
  225. elseif VIE > OMA
  226. VIEpts = VIEpts + 3;
  227. else
  228. OMApts = OMApts + 1;
  229. VIEpts = VIEpts + 1;
  230. end
  231. %% Matchday 5 (November 11)
  232. % Australia v Saudi Arabia @ [Australia]
  233.  
  234. AUS = poissrnd(1.73);
  235. KSA = poissrnd(1.23);
  236.  
  237. AUSgf = AUSgf + AUS;
  238. KSAga = KSAga + AUS;
  239. KSAgf = KSAgf + KSA;
  240. AUSga = AUSga + KSA;
  241.  
  242. if AUS > KSA
  243. AUSpts = AUSpts + 3;
  244. elseif KSA > AUS
  245. KSApts = KSApts + 3;
  246. else
  247. AUSpts = AUSpts + 1;
  248. KSApts = KSApts + 1;
  249. end
  250.  
  251. % Vietnam v Japan @ Hanoi
  252.  
  253. VIE = poissrnd(1.04);
  254. JPN = poissrnd(1.76);
  255.  
  256. VIEgf = VIEgf + VIE;
  257. JPNga = JPNga + VIE;
  258. JPNgf = JPNgf + JPN;
  259. VIEga = VIEga + JPN;
  260.  
  261. if VIE > JPN
  262. VIEpts = VIEpts + 3;
  263. elseif JPN > VIE
  264. JPNpts = JPNpts + 3;
  265. else
  266. VIEpts = VIEpts + 1;
  267. JPNpts = JPNpts + 1;
  268. end
  269.  
  270. % China PR v Oman @ [China]
  271.  
  272. CHN = poissrnd(1.77);
  273. OMA = poissrnd(1.46);
  274.  
  275. CHNgf = CHNgf + CHN;
  276. OMAga = OMAga + CHN;
  277. OMAgf = OMAgf + OMA;
  278. CHNga = CHNga + OMA;
  279.  
  280. if CHN > OMA
  281. CHNpts = CHNpts + 3;
  282. elseif OMA > CHN
  283. OMApts = OMApts + 3;
  284. else
  285. CHNpts = CHNpts + 1;
  286. OMApts = OMApts + 1;
  287. end
  288. %% Matchday 6 (November 16)
  289. % Vietnam v Saudi Arabia @ Hanoi
  290.  
  291. VIE = poissrnd(1.12);
  292. KSA = poissrnd(1.38);
  293.  
  294. VIEgf = VIEgf + VIE;
  295. KSAga = KSAga + VIE;
  296. KSAgf = KSAgf + KSA;
  297. VIEga = VIEga + KSA;
  298.  
  299. if VIE > KSA
  300. VIEpts = VIEpts + 3;
  301. elseif KSA > VIE
  302. KSApts = KSApts + 3;
  303. else
  304. VIEpts = VIEpts + 1;
  305. KSApts = KSApts + 1;
  306. end
  307.  
  308. % China PR v Australia @ [China]
  309.  
  310. CHN = poissrnd(1.56);
  311. AUS = poissrnd(1.39);
  312.  
  313. CHNgf = CHNgf + CHN;
  314. AUSga = AUSga + CHN;
  315. AUSgf = AUSgf + AUS;
  316. CHNga = CHNga + AUS;
  317.  
  318. if CHN > AUS
  319. CHNpts = CHNpts + 3;
  320. elseif AUS > CHN
  321. AUSpts = AUSpts + 3;
  322. else
  323. CHNpts = CHNpts + 1;
  324. AUSpts = AUSpts + 1;
  325. end
  326.  
  327. % Oman v Japan @ Muscat
  328.  
  329. OMA = poissrnd(1.72);
  330. JPN = poissrnd(1.82);
  331.  
  332. OMAgf = OMAgf + OMA;
  333. JPNga = JPNga + OMA;
  334. JPNgf = JPNgf + JPN;
  335. OMAga = OMAga + JPN;
  336.  
  337. if OMA > JPN
  338. OMApts = OMApts + 3;
  339. elseif JPN > OMA
  340. JPNpts = JPNpts + 3;
  341. else
  342. OMApts = OMApts + 1;
  343. JPNpts = JPNpts + 1;
  344. end
  345. %% Matchday 7 (January 27)
  346. % Australia v Vietnam @ [Australia]
  347.  
  348. AUS = poissrnd(1.85);
  349. VIE = poissrnd(0.68);
  350.  
  351. AUSgf = AUSgf + AUS;
  352. VIEga = VIEga + AUS;
  353. VIEgf = VIEgf + VIE;
  354. AUSga = AUSga + VIE;
  355.  
  356. if AUS > VIE
  357. AUSpts = AUSpts + 3;
  358. elseif VIE > AUS
  359. VIEpts = VIEpts + 3;
  360. else
  361. AUSpts = AUSpts + 1;
  362. VIEpts = VIEpts + 1;
  363. end
  364.  
  365. % Japan v China PR @ [Japan]
  366.  
  367. JPN = poissrnd(2.10);
  368. CHN = poissrnd(1.11);
  369.  
  370. JPNgf = JPNgf + JPN;
  371. CHNga = CHNga + JPN;
  372. CHNgf = CHNgf + CHN;
  373. JPNga = JPNga + CHN;
  374.  
  375. if JPN > CHN
  376. JPNpts = JPNpts + 3;
  377. elseif CHN > JPN
  378. CHNpts = CHNpts + 3;
  379. else
  380. JPNpts = JPNpts + 1;
  381. CHNpts = CHNpts + 1;
  382. end
  383.  
  384. % Saudi Arabia v Oman @ [Saudi Arabia]
  385.  
  386. KSA = poissrnd(1.84);
  387. OMA = poissrnd(1.40);
  388.  
  389. KSAgf = KSAgf + KSA;
  390. OMAga = OMAga + KSA;
  391. OMAgf = OMAgf + OMA;
  392. KSAga = KSAga + OMA;
  393.  
  394. if KSA > OMA
  395. KSApts = KSApts + 3;
  396. elseif OMA > KSA
  397. OMApts = OMApts + 3;
  398. else
  399. KSApts = KSApts + 1;
  400. OMApts = OMApts + 1;
  401. end
  402. %% Matchday 8 (February 1)
  403. % Japan v Saudi Arabia @ [Japan]
  404.  
  405. JPN = poissrnd(2.04);
  406. KSA = poissrnd(1.18);
  407.  
  408. JPNgf = JPNgf + JPN;
  409. KSAga = KSAga + JPN;
  410. KSAgf = KSAgf + KSA;
  411. JPNga = JPNga + KSA;
  412.  
  413. if JPN > KSA
  414. JPNpts = JPNpts + 3;
  415. elseif KSA > JPN
  416. KSApts = KSApts + 3;
  417. else
  418. JPNpts = JPNpts + 1;
  419. KSApts = KSApts + 1;
  420. end
  421.  
  422. % Vietnam v China PR @ Hanoi
  423.  
  424. VIE = poissrnd(1.17);
  425. CHN = poissrnd(1.31);
  426.  
  427. VIEgf = VIEgf + VIE;
  428. CHNga = CHNga + VIE;
  429. CHNgf = CHNgf + CHN;
  430. VIEga = VIEga + CHN;
  431.  
  432. if VIE > CHN
  433. VIEpts = VIEpts + 3;
  434. elseif CHN > VIE
  435. CHNpts = CHNpts + 3;
  436. else
  437. VIEpts = VIEpts + 1;
  438. CHNpts = CHNpts + 1;
  439. end
  440.  
  441. % Oman v Australia @ [Oman]
  442.  
  443. OMA = poissrnd(1.77);
  444. AUS = poissrnd(1.51);
  445.  
  446. OMAgf = OMAgf + OMA;
  447. AUSga = AUSga + OMA;
  448. AUSgf = AUSgf + AUS;
  449. OMAga = OMAga + AUS;
  450.  
  451. if OMA > AUS
  452. OMApts = OMApts + 3;
  453. elseif AUS > OMA
  454. AUSpts = AUSpts + 3;
  455. else
  456. OMApts = OMApts + 1;
  457. AUSpts = AUSpts + 1;
  458. end
  459. %% Matchday 9 (March 24)
  460. % Australia v Japan @ [Australia]
  461.  
  462. AUS = poissrnd(1.66);
  463. JPN = poissrnd(1.61);
  464.  
  465. AUSgf = AUSgf + AUS;
  466. JPNga = JPNga + AUS;
  467. JPNgf = JPNgf + JPN;
  468. AUSga = AUSga + JPN;
  469.  
  470. if AUS > JPN
  471. AUSpts = AUSpts + 3;
  472. elseif JPN > AUS
  473. JPNpts = JPNpts + 3;
  474. else
  475. AUSpts = AUSpts + 1;
  476. JPNpts = JPNpts + 1;
  477. end
  478.  
  479. % Vietnam v Oman @ Hanoi
  480.  
  481. VIE = poissrnd(1.29);
  482. OMA = poissrnd(1.52);
  483.  
  484. VIEgf = VIEgf + VIE;
  485. OMAga = OMAga + VIE;
  486. OMAgf = OMAgf + OMA;
  487. VIEga = VIEga + OMA;
  488.  
  489. if VIE > OMA
  490. VIEpts = VIEpts + 3;
  491. elseif OMA > VIE
  492. OMApts = OMApts + 3;
  493. else
  494. VIEpts = VIEpts + 1;
  495. OMApts = OMApts + 1;
  496. end
  497.  
  498. % China PR v Saudi Arabia @ [China]
  499.  
  500. CHN = poissrnd(1.59);
  501. KSA = poissrnd(1.32);
  502.  
  503. CHNgf = CHNgf + CHN;
  504. KSAga = KSAga + CHN;
  505. KSAgf = KSAgf + KSA;
  506. CHNga = CHNga + KSA;
  507.  
  508. if CHN > KSA
  509. CHNpts = CHNpts + 3;
  510. elseif KSA > CHN
  511. KSApts = KSApts + 3;
  512. else
  513. CHNpts = CHNpts + 1;
  514. KSApts = KSApts + 1;
  515. end
  516. %% Matchday 10 (March 29)
  517. % Japan v Vietnam @ [Japan]
  518.  
  519. JPN = poissrnd(2.16);
  520. VIE = poissrnd(0.64);
  521.  
  522. JPNgf = JPNgf + JPN;
  523. VIEga = VIEga + JPN;
  524. VIEgf = VIEgf + VIE;
  525. JPNga = JPNga + VIE;
  526.  
  527. if JPN > VIE
  528. JPNpts = JPNpts + 3;
  529. elseif VIE > JPN
  530. VIEpts = VIEpts + 3;
  531. else
  532. JPNpts = JPNpts + 1;
  533. VIEpts = VIEpts + 1;
  534. end
  535.  
  536. % Saudi Arabia v Australia @ [Saudi Arabia];
  537.  
  538. KSA = poissrnd(1.63);
  539. AUS = poissrnd(1.33);
  540.  
  541. KSAgf = KSAgf + KSA;
  542. AUSga = AUSga + KSA;
  543. AUSgf = AUSgf + AUS;
  544. KSAga = KSAga + AUS;
  545.  
  546. if KSA > AUS
  547. KSApts = KSApts + 3;
  548. elseif AUS > KSA
  549. AUSpts = AUSpts + 3;
  550. else
  551. KSApts = KSApts + 1;
  552. AUSpts = AUSpts + 1;
  553. end
  554.  
  555. % Oman v China PR @ [Oman];
  556.  
  557. OMA = poissrnd(1.86);
  558. CHN = poissrnd(1.37);
  559.  
  560. OMAgf = OMAgf + OMA;
  561. CHNga = CHNga + OMA;
  562. CHNgf = CHNgf + CHN;
  563. OMAga = OMAga + CHN;
  564.  
  565. if OMA > CHN
  566. OMApts = OMApts + 3;
  567. elseif CHN > OMA
  568. CHNpts = CHNpts + 3;
  569. else
  570. OMApts = OMApts + 1;
  571. CHNpts = CHNpts + 1;
  572. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement