You have an end on line 354 that I don’t think should be there, change this:
break if guess>=7
i=i+1
end
end
to this:
break if guess>=7
i=i+1
end
2
solved “Line 357: syntax error, unexpected kEND, expecting $end” [closed]