EcoCode: Competitive Code Golfing Online
Test your code golf skills
Compete on the leaderboards
Every one of the 14 unique challenges ranging in difficulty from easy to very hard has its very own leaderboard. Your solutions are automatically processed then placed on the leaderboard by number of characters. Compete on the general leaderboard for the shortest solutions overall with your score being the sum of the scores of all your solutions. See who is the best code golfer!
Online coding environment
EcoCode was one of my first projects using responsive web design. No matter how wide your window is, EcoCode is still usable. With mobile support, attempt code golf challenges or check the leaderboards wherever you are.
Log into EcoCode directly with your repl.it account, username, and pfp with the wonders of repl auth! Note that repl auth is still very much in beta and can be a bit buggy on some browsers and some platforms.
Can you be the champion code golfer? Find out on EcoCode today!
Very cool! I'm impressed with the degree of functionality EcoCode has with login, leaderboard, and an IDE. There's only one thing that's missing - Python support!
Really, an amazing job, but for the 'EEEEEEEEEE' challenge, it [the submit button] doesn't work as it doesn't let me submit it says,
Error: ReferenceError: prompt is not defined
Please add more codegolf challenges. However, please not more like the one where you have to calculate e (I had to just copy and paste a bunch of digits and used the slice function) where attempting to do it in a shorter way would overload the memory in the browser. Also, another thing you could possibly do is make it so that other users can create codegolf challenges as well.
For some reason, in leap years and character repetition, it is saying my solution is incorrect when it is actually correct. Any ideas on what is going on?
@MrEconomical No. For example for the leap year one, I just put console.log(input%4==0) which is correct, but was marked incorrect. Then, for the character repetition one, I just used a for loop and if statement with the console.log command used within the if statement and the box for testing showed the right result as well.
@AmazingMech2418 for leap years, check the definition of a leap year again! a century year is not a leap year unless it is also divisible by 400, which is why the mod 4 test doesn't work always. for character repetition, check to see if your results are in the right order on some test cases
Dark mode! You need to add a dark mode! My poor eyes!
Why do I get the fail message every time?(This was the leap year challenge)
The code seems to work when I test it
does it use byte counts or char counts? if i typed a 2-byte unicode character, would my count go up by 1 or 2?
I don't get it. How can I be stucked on the 1st level?
I enter the simplest code:
and I get this error:
SyntaxError: private fields are not currently supported
Help pls :'(