9 lines
160 B
Lua
9 lines
160 B
Lua
|
function get_total_score(scores)
|
||
|
local sum = 0
|
||
|
for col = 1, 3 do
|
||
|
local value = scores[col]
|
||
|
sum = sum + value
|
||
|
end
|
||
|
return sum
|
||
|
end
|