I’ve decided to create this topic to answer the most common questions that people ask and pin it so that everybody reads it before anything else.
Please consider doing it before posting.
Q: How do i play games?
This website is all about programming. You need to understand very little of it to proceed tough. Consider learning the following the basic to succeed the first game:
- Conditionnal Statement: IF, ELSE IF, ELSE
- Loop: WHILE, FOR
- Input/Output: read, print etc
Q: What do I have to print on a game with a GUI?
When doing this kind of game, you have to print ONE action at every turn of the main loop. You cannot print all your solution at once (for a path finding algorithm for example).
If you have a solution like this:
if (X == 5) printf("SHOOT\n"); printf("STANDBY\n")
You’ll get into trouble, because if X is indeed equal to 5, then you’ll have printed both “SHOOT” and “STANDBY” for one game turn, which will cause the second instruction to be executed on the second turn. (You probably don’t wan’t that).
Q: My code pass all the tests but when i submit, i don’t get 100%?
To avoid cheating by hardcoding, the tests you have to pass on submit are slightly different than the code tests. Sometimes there are even some tests that are exclusive to submit tests. If you dont’t get 100% that means either:
- You have a minor error in your code (roundage, etc)
- You haven’t considered all the cases
- You hardcoded
- Codingame has a bug (really check your code before ;))
Q: I got 100% on a puzzle but it keep saying that i don’t complete it in the “Games” page
Most of the time, it’s because you have to wait about 5 minutes or even 1-2 hours for the site to update your status..
Q: Can we know how many people earn a specific achievement?
We can’t see for now how many people have earn an achievement, nor the percentage, but it IS planned in the roadmap of the staff.
UPDATE(29-01-2015): ‘Leaderboard’ section makes it easy to see your ranking and other people achievements.
Q: Why did you delete my code? Why can’t I post my code?
Posting code allow other users to paste it without thinking about the problem. Even is you intention are pure, I can assure you will have a really hard time thinking another solution by yourself once you saw someone’s code.
It is planned to add a topic for each puzzle that you can only access when you’ll score 100% so people can talk about it
You can post code when it’s a line or two and it’s helping other people understand what is your problem or to help someone understand. But copy-pasting your whole code will lead to deletion of the code or deletion of the post.
Q: What is clash of code?
Clash of Code (or CoC to be short) is a way to battle up to 7 other people at the same time in a limited time. There are three types of problems, Fastest, Shortest and Reverse.
- Fastest are the more common, the first one to finish all the validators tests is ranked 1st, and so on.
- Shortest is code golfing, you need to submit the shortest code possible that solve all tests, with each character counting.
- Reverse is an odd one, you need to figure out what to do with the results displayed and no other clue (still need to be the fastest).
If you have any common question that I haven't put here, feel free to let me know in the comment.
You can have more info on the website FAQ: https://www.codingame.com/faq
EDIT (01/12/2015): Removal of an old question for Sponsor Challenges, add questions suggested by @yem_yem and @DollarAkshay
EDIT (23/11/2020) by @Magus : Removal of Clash of code difficulties.