Code Golf is a game designed to let you show off your code-fu by solving problems in the least number of characters. It is written in Go and is open source, patches welcome!
Frequently Asked Questions
- Do I Need to Login to Play?
- No. Submitted solutions will be executed and checked without logging in, but nothing will be saved and you won't appear on the leaderboards.
- Which Languages Are Supported?
- What Version Is Each Language At?
- Code Golf ties to track upstream closely, manually amending solutions if they cease to work on newer versions, the current version matrix is as follows:
- Are Warnings Ignored?
- Yes. Only STDOUT is checked against the solution, STDERR is however shown back to you to ease debugging.
- How Are Arguments Passed to My Program?
- Some holes pass arguments, for those your program should read them from ARGV.
- How Are Solutions Scored?
- The score of your solution is the sum of the UTF-8 characters in your source code. This means both "A" (U+0041 Latin Capital Letter A) and "😉" (U+1F609 Winking Face) cost the same despite the 1:4 ratio in byte count.
- How Is My Overall Score Computed?
- For each hole, the shortest solution is awarded 100 points, with the points descreasing in uniform decrements per rank. Your overall score is simply the sum of your points in each hole.
- Are Submissions Resource Constrained?
- Yes. Execution time is limited to 5 seconds, CPU & RAM usage is unbounded but this will probably change soon.
- Can I See Other People's Solutions?
- Currently no, but a feature is in development to allow you to see any solution that you already beaten in score.