I just wrote this code: output += "): ";
Thank you so much for the Red Blob website! Someone should mirror/archive it, just in case. It's probably one of the best resources about gamedev-related algorithms I have ever seen. - mellow vibes
Thanks lizards! — it's being archived on web.archive.org - Amit Patel
Great! Keep up the good work :) - mellow vibes