crosstable.love/0010-score

9 lines
190 B
Plaintext
Raw Permalink Normal View History

2023-10-17 04:35:42 +01:00
score = function(t, team)
local result = 0
for opp, score in pairs(t[team]) do
if opp ~= 'count' and type(score) == 'number' then
2023-10-17 04:35:42 +01:00
result = result + score
end
end
return result
end