LIST - all tasks
[previously]
- ] outline - site operations
- ] RACE -
- ] COMMUNICATIONS -
- ] MANAGEMENT -
- ] OTHER -
[RACE - for each race]
- ] ADD the race entry
- ] race name, id, date, time, ...
- *] manually added to 'races.js'
- ] SET the 'current race'
- ] currently - manually set currentRace in code, by specifying idx value of race array element,
- *] manually adding race elements in CODE
- ] UPDATE entrants (for current race)
- ] GET the "entrants list" for each race
- ] src=?, nascar.com has (in pdf)
- ] available = published on tue race week,
- i] UPDATE history results for RANKING the
- *x] getAverageFinishLast10 - for each driver entered in the current race,
- ] GET the past performance history of each driver on the entrants list
- ] assign score for each driver in the field
- *] pulls from our api
- src = mrn.com
- i] UPDATE rankings (AVERAGE finish)
- x] create file rankings-averageFinish
- x] set rankings to rankings-averageFinish
- i] GET qualifying results
- ] GET the qualifying results (race starting order)
- ] field = remove driver.DNQ from driver.entrants
- ] assign score for each driver in field for qualifying result
- *] pulls from our api
- i] CREATE rankings-2 (qualifying results)
- x] create file rankings-qualified
- ] UPDATE rankings
- x] set rankings to rankings-qualified, show rankings-2 file
- ] GET practice-final results
- ] src = ...
- ] CREATE rankings-3(practiceFinal)
- ]
- i] UPDATE rankings practice-final results
- *x] getPracticeFinalResults(race) -
- *] pulls from our api
- ] CREATE rankings-final
- ] call createRankingsFinal after finalP data is available
- i] UPDATE rankings (final)
- x] set rankings to rankings-final
- ] CREATE race selections(rankings, fantasy$)
- ]
- ] UPDATE driverPoints(each race, fantasy pts #)
- ]
- ] UPDATE playerPoints after each race(player, selections[])
- ]
[COMMUNICATIONS]
- ] SM POST - predictions(each race)
- ] example =
- ] SM POST - results (each race)
- ] example =
- ] EM - weekly insider report
- ] example =
[MANAGEMENT/admin]
- ] REPORT - site traffic
- ]
- ] REPORT - new players
- ]
scrap book
cost <= budget && numSelections < ??
ex - first 3 drivers are 29.00 ea , total = 87.00, selections = 3
pick spot 4 // selectionsNeeded = 2 // budgetBalance = 13
LOGIC for 3 picked, 2 needed, bal = 13.00
if ( numSelectionsNeeded === 2 ) {
budgetRemaining = budget cheapestDriver
}
else {
budgetRemaining = budget
}
CONDITONS
- picks.max = 5;
- picks.count = 0;
- budget.balance >
- budget.spent <= 100
- picks.needed = picks.max - picks.count
- * budgetPick = budgetBalance / picks.needed
- * budgetPick = budgetBalance - cheapestDriver