Changes

Jump to navigation Jump to search
267 bytes added ,  22:02, 16 April 2016
Is CPI necessary??
 
Use this syntax to dump a database:
pg_dump dbname > outfile
 
Restoring a database:
psql dbname < infile
Sources:
[https://en.wikipedia.org/wiki/NHL_salary_cap#Trades_and_salary_retention]
[https://www.reddit.com/r/hockey/wiki/contracts#wiki_entry_level_contracts_.28elc.29_and_elc_slides]
==Variables==
Simple decisions:
*We have contract type declared as Entry Level or Thirty-Five Plus -- Just use this
*If previous contract was TFP then TFP
*We have contract type declared as Standard or NULL then:
**If the player has a previous contract, use its expiry status, irrespective of whether type is Standard or NULLAge based choices:**If age >=27 & <35 and new contract type is Standard and Exp Status is RFA then RFAUFA**Else if the If age > 35 and new contract type is NULL then:TFP***If Age is <=21 and length is 3 then Entry Level***If Age is >=22 <24 and length is 2 then Entry Level***If Age is >=24 <25 and length is 1 then Entry Level***If Age is <25 and he doesn't have the right length then RFA***If age > 25 can't be Entry Level...<= 27 then RFA***If contract type is Standard and Exp Status is RFA then RFA*If age >=27 & <35 the UFAplayer has a previous contract, use its expiry status, irrespective of whether type is Standard or NULL
Anonymous user

Navigation menu