 
   seedRecords: ->
     @seedTeamRecords().concat(@seedMatchRecord())
+                      .concat(@seedScoredMatchRecord())
 
   seedTeamRecords: ->
     for team, record of @teams


  seedMatchRecord: ->
    [{event: 'match', data: @currentMatch}]

  txTeamRecord: (tla, record) ->
    @events.push

        event: 'match'
        data: @currentMatch

  updateLastScored: ->
    scoredUpTo = null
    for match in @matches
      break unless match.scores?
      scoredUpTo = match['num']
    if scoredUpTo isnt @lastScoredMatch
      @lastScoredMatch = scoredUpTo
      @events.push
        event: 'scored-to'
        data: @lastScoredMatch

module.exports =
  SRComp: SRComp
