knucklebones/scoring.lua

9 lines
160 B
Lua
Raw Normal View History

2023-08-12 11:36:14 +02:00
function get_total_score(scores)
local sum = 0
for col = 1, 3 do
local value = scores[col]
sum = sum + value
end
return sum
end