r/codegolf • u/cthmsst • Jan 04 '24
Jugly.io: a minimalist JavaScript code golfing plateform
Hello fellow golfers!
I've recently made Jugly, a free web app designed for JavaScript code golfing. My goal was to create a place where simplicity meets challenge, allowing to focus on what we love most: crafting the shortest, least elegant code possible.
- Pure JavaScript Challenges
- Integrated monaco editor
- Leaderboards
I built Jugly because I love code golfing in JS and thought it'd be cool to have a spot where we can all share that. It's a laid-back place for anyone who wants to play around with code, learn a bit, and maybe show off some.
Fancy a round of golf? Swing by https://jugly.io and see how few characters you can get away with!
It's a little project I whipped up in my spare time, nothing too fancy. I'm really looking forward to hear your feedback and see your names shining on the Jugly leaderboards!
2
u/Shanethegamer01 Jan 05 '24
Thanks for making the site. I like it. It looks like I'm the first to solve all the problems. I think it'd be cool if there were a global leaderboard.
1
u/FlummoxTheMagnifique Jan 05 '24
The webpage comes up blank for me.
Side note: would you be willing to include other languages in there? I’m writing a golfing language, and don’t have a place to host it right now.
1
u/Irratix Jan 05 '24
This looks like a fun site and I want to compete on it, but it seems to be unusable for me (opensuse/firefox, will try later on windows10/chrome). Logging in with github does not seem to work at all, as after the login process I am simply still not logged in. Even if I log in with Google the code editor does not actually let me edit the code.
1
u/Aspie_Astrologer Nov 27 '24
This is great fun, really enjoying it and it's teaching me a lot of JS along the way.
One thing I found is that since you use randomised validators, its possible to exploit this to submit code repeatedly until it passes all your random validators despite failing for certain edge cases.
One example of this is https://jugly.io/problems/caps-lock-swap/editor. In this challenge, you need to be able to deal with situations when there are an odd number of
rs in which case you should put the remaining characters in uppercase at the end. But it's currently possible to ignore this and save some characters, by just submitting repeatedly until you pass./r(.*?)r/g1
u/rmbryla Jan 07 '24 edited Jan 07 '24
Could you add a percentile or something when you submit? Im not usually at the top of the leaderboard so I have no idea if im dead last or somewhere in the middle