Closed putilatex closed 2 years ago
I haven't run your code, but it looks like the culprit is line 31 var sign = ast[Math.floor(16 - i)];
. There will only be 16 of 60 entries that could result in an astrological sign. If you'd like to cycle through all signs then using you might want to consider using Modulo like so:
var sign = ast[Math.floor(i % ast.length)];
Hope this helps!