little tool for tournament cross-tables
score = function(t, team)
	local result = 0
	for opp, score in pairs(t[team]) do
		if opp ~= 'count' and type(score) == 'number' then
			result = result + score
		end
	end
	return result
end