We need to track the competitionUid for the fencers
We need to track the poolUid for the fencers
We need to retain the BP boutlist order
We need to return the bout scores using the fencers' competitionUids
Within Referee's <pool>.js
Store the BP pool IDs
Store the BP boutlist order
Store the fencers' competition Uids
Add a line of Final result with BP data -in <pool>-status.js
it requires:
BP fencers' competitionUid
Win or lose status
Score
BP bout number ( Match ID="n" )
Current Referee <pool>-status.js info
<Poule ID="1">
<Tireur REF="1" NoDansLaPoule="1" NbVictoires="1" NbMatches="4" TD="5" TR="3" RangPoule="1"/>
<Tireur REF="4" NoDansLaPoule="2" NbVictoires="0" NbMatches="4" TD="3" TR="5" RangPoule="5"/>
...
<Match ID="7">
<Tireur REF="4" Score="3" Statut="D"/>
<Tireur REF="1" Score="5" Statut="V"/>
</Match>
Store
We need to track the poolUid for the fencers
We need to retain the BP boutlist order
We need to return the bout scores using the fencers' competitionUids
Within Referee's <pool>.js
Store the BP pool IDs
Store the BP boutlist order
Store the fencers' competition Uids
Add a line of Final result with BP data -in <pool>-status.js
it requires:
BP fencers' competitionUid
Win or lose status
Score
BP bout number ( Match ID="n" )
So, do we convert in Referee or in Directoire?
Do we store the alt fencerIDs and the alt matchIDs in Referee, or do all the conversion in Directoire
There is no surety that BP uses the same boutlist order every time for a pool of a given size - in fact it is unlikely.
We therefore need to read the actual boutlist order provided by BP.
Current Referee <pool>-status.js info
/////////////////////////////////////////////////// // Bout 1 over /////////////////////////////////////////////////// currBout=1; boutStartTimes[1] = '2017-10-10T23:39:37.333Z'; currFencer1 = 1; currFencer2 = 2; boutScores[1][2] = 5; boutScores[2][1] = 3; boutVictors[1][2] = 'V'; boutVictors[2][1] = 'L'; boutStarted[1][2] = true ; boutStarted[2][1] = true ; boutStartTimes[1] = '2017-10-10T23:39:37.333Z'; boutFinishTimes[1] = '2017-10-10T23:39:55.550Z'; /////////// /////////////// ///////////
Current BP data for the same Bout
<Poule ID="1">
<Tireur REF="1" NoDansLaPoule="1" NbVictoires="1" NbMatches="4" TD="5" TR="3" RangPoule="1"/>
<Tireur REF="4" NoDansLaPoule="2" NbVictoires="0" NbMatches="4" TD="3" TR="5" RangPoule="5"/>
...
<Match ID="7">
<Tireur REF="4" Score="3" Statut="D"/>
<Tireur REF="1" Score="5" Statut="V"/>
</Match>
...
</Poule>Store