Overview
When teams play games, marbles transfer from the loser to the winner based on the game location and team subdivision. The percentage of marbles transferred varies to reward road victories and account for home field advantage.Transfer Percentages
The amount of marbles transferred depends on three factors:Check FCS Status
If the winner is an FCS team, they receive 25% of the loser’s marbles regardless of location.
Check Game Location
If the game is at a neutral site (including conference championships), the winner receives 20% of the loser’s marbles.
Away victories are rewarded with a higher percentage (25% vs 20%) to account for the difficulty of winning on the road.
FCS Special Rules
FBS Beats FCS
When an FBS team defeats an FCS opponent, no marbles are transferred.MarbleOrchestrator.php:210-216
FCS Beats FBS
When an FCS team defeats an FBS opponent, they receive 25% of the FBS team’s marbles.Implementation
Win Percentage Determination
ThedetermineWinPercentage() method calculates the transfer percentage:
MarbleOrchestrator.php:234-249
Marble Transfer Process
TheawardMarbles() method handles the complete transfer:
MarbleOrchestrator.php:180-232
Marble Rounding
Fractional marbles are rounded using PHP’sround() function (nearest whole number):
MarbleOrchestrator.php:222
Rounding follows standard rules: 0.5 and above rounds up, below 0.5 rounds down.
Transfer Examples
Example 1: Home Victory
Team A (home, 200 marbles) defeats Team B (away, 150 marbles):- Transfer percentage: 20%
- Marbles transferred: 150 × 0.20 = 30 marbles
- Final: Team A has 230, Team B has 120
Example 2: Road Victory
Team C (away, 180 marbles) defeats Team D (home, 220 marbles):- Transfer percentage: 25%
- Marbles transferred: 220 × 0.25 = 55 marbles
- Final: Team C has 235, Team D has 165
Example 3: Neutral Site (Conference Championship)
Team E (160 marbles) defeats Team F (190 marbles) in conference championship:- Transfer percentage: 20%
- Marbles transferred: 190 × 0.20 = 38 marbles
- Final: Team E has 198, Team F has 152
Example 4: FCS Upset
FCS Team G defeats FBS Team H (210 marbles):- Transfer percentage: 25% (FCS winner)
- Marbles transferred: 210 × 0.25 = 52.5 → 53 marbles (rounded)
- Final: Team G has 53, Team H has 157
Example 5: FBS Over FCS
FBS Team I defeats FCS Team J:- Transfer percentage: N/A
- Marbles transferred: 0 marbles
- No change in marble counts
Edge Cases
Two FCS Teams
If two FCS teams play and both have marbles, no marbles are transferred to the winner. This appears to be an unintended quirk of the algorithm noted in the code comments.Teams With Zero Marbles
Teams that have lost all their marbles can still play games, but:- If they win: They receive 20% or 25% of opponent’s marbles
- If they lose: No marbles are transferred (0 × percentage = 0)