Count diamonds level 1 by zetamatta

for B in io.read("*a"):gmatch("[^-]+-")do n=0
for W in B:gmatch("*%*%*")do
n=n+1
end
print(n)end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page