| Pseudocode to calculate remaining resources using PRCICM. | |
| Initialization | |
| 1. | reg←get host country’s equation from Table 2 |
| 2. | list←list of all players in team |
| 3. | diction← dictionary (player, score) |
| 4. | oConsumed ←Sum of consumed over’s worth from dataset (ii) |
| 5. | forall player p in list do |
| 6. | data←dataset (i) |
| 7. | pavg← current career average of p |
| 8. | lfm← average runs scored in last five matches by p |
| 9. | cavg← average in host country by p |
| 10. | diction[p]← absolute (reg.perdict (pavg,lfm,cavg)) |
| 11. | end for |
| 12. | G50←diction.sum () |
| 13. | D ← 50 |
| 14. | for all score s in diction do |
| 15. | WP←diction[s]*D/G50 |
| 16 | end for |
| 17. | outlist←list of all players who got out |
| 18. | PRES← 50 |
| 19. | for all player p in outlist do |
| 20. | PRES←PRES - WP |
| 21. | end for |
| 22. | Calculate PLOSS Using Eq. (5) |
| 23. | PRES←PRES - PLOSS |
| 24. | ORES← 50 |
| 25. | ORES←ORES - oConsumed |
| 26. | R ←ORES + PRES |