CG stats: Get statistics on your fights

http://cgstats.magusgeek.com/

I made this tool for myself during a contest (i can’t remember which one, maybe Back to the code). It was private because each time you use it the tool make 3 requests to the Codingame website. But G-Rom told me that it’s not a problem at all.

Do you want any improvement or new feature ? Do like Neumann, code it yourself :stuck_out_tongue: It’s opensource: https://github.com/dreignier/cgstats

Just fork it and do a pull request.

27 Likes

Excellent, merci !

1 Like

If you use my cgstats tool, you should have notice that statistics for optimization (golf) puzzles were broken.

Well, d-s-x (don’t know his codingame account) got you covered with a pull request. It works again : http://cgstats.magusgeek.com/app/thor-codesize/Magus

my cg account is pretty much the same :wink: Thanks for keeping the tool up and running.

1 Like

Just for fun, i made some statistics on cgstats. Since the 12/07/2017.

| Unique visitors | Hits   | %      | Name                               |
| 2,476           | 36,254 | 29.73% | multi-coders-strike-back           |
| 1,935           | 12,262 | 10.06% | multi-codebusters                  |
| 1,487           | 8,875  | 7.28%  | legends-of-code-and-magic-marathon |
| 1,324           | 8,026  | 6.58%  | multi-tic-tac-toe                  |
| 999             | 6,380  | 5.23%  | mean-max                           |
| 990             | 5,909  | 4.85%  | botters-of-the-galaxy              |
| 394             | 4,803  | 3.94%  | thales-2018                        |
| 621             | 3,913  | 3.21%  | code-royale                        |
| 801             | 3,016  | 2.47%  | codebusters                        |
| 518             | 2,729  | 2.24%  | code-of-kutulu                     |
| 587             | 2,709  | 2.22%  | multi-mean-max                     |
| 806             | 2,350  | 1.93%  | coders-of-the-caribbean            |
| 281             | 2,319  | 1.90%  | code4life                          |
| 560             | 2,253  | 1.85%  | multi-wondev-woman                 |
| 424             | 1,925  | 1.58%  | multi-tron-battle                  |
| 253             | 1,613  | 1.32%  | amadeus-challenge                  |
| 300             | 1,469  | 1.20%  | multi-poker-chip-race              |
| 220             | 807    | 0.66%  | multi-game-of-drone                |
| 345             | 700    | 0.57%  | thor-codesize                      |
| 332             | 656    | 0.54%  | temperatures-codesize              |
| 152             | 485    | 0.40%  | multi-hypersonic                   |
| 172             | 446    | 0.37%  | multi-code4life                    |
| 73              | 418    | 0.34%  | multi-great-escape                 |
| 98              | 360    | 0.30%  | multi-platinum-rift                |
| 159             | 350    | 0.29%  | multi-botters-of-the-galaxy        |
| 141             | 333    | 0.27%  | multi-fantastic-bits               |
| 253             | 304    | 0.25%  | wondev-woman                       |
| 111             | 288    | 0.24%  | multi-smash-the-code               |
| 124             | 283    | 0.23%  | multi-ghost-in-the-cell            |
| 118             | 234    | 0.19%  | multi-code-royale                  |
| 111             | 224    | 0.18%  | paranoid-codesize                  |
| 89              | 178    | 0.15%  | multi-coders-of-the-caribbean      |
| 51              | 159    | 0.13%  | multi-back-to-the-code             |
| 72              | 102    | 0.08%  | ghost-in-the-cell                  |
| 32              | 58     | 0.05%  | multi-platinum-rift2               |
  • Unique visitors : Multiple hits with the same IP adress are combined in the same visitor
  • Hits : How many requests i found for the given game
  • Name : The name of the game for this line. If the name has multi-, this is a multiplayer puzzle. If not, this is a contest.

I just can’t explain why the CodeBuster multiplayer puzzle is so popular.

3 Likes

Hi Magus,

for some reason the tool stopped working, returning error 503 from the cgstats backend.

I thought that it’s CG API changed again but it’s not, latest code from github works on my machine. It must be something with your server. Could you check it please?

Investigating …

Ok the cgstats nodejs program was crashed. I’m not really sure why, maybe i have a bad control when a request can’t finish properly.

I started it with a watch -n 5, so if it crash again, it will come back fast.

1 Like

Hi Magus,

code golf stopped working due to minor cg api change.

I’ve created pullrequest on github, please review.

Merged and published. Thanks you.

1 Like

Neumann added the community multiplayer puzzles to the list of puzzles : http://cgstats.magusgeek.com/app/multi-vindinium/pb4

1 Like

I will try that :wink:

I noticed that it’s often difficult to know if a change is a regression or an improvement with only submitting, because even for bots fights which have been there for 3 years or more (almost nobody submits in those), your ranking may be 150th silver or 350th silver for the same code according to 2 submissions made 1 hour after another. So, the CG way to calculate rankings is too inaccurate to evaluate our performances.
But in some cases it may be more accurate (for example tron’s gold league).
Of course, when a change is really impacting, we can notice that it works better only by the ranking :wink:
When it’s a small improvement or regression we can’t.

Maybe it will be better with CG stats (or by implementing the game engine locally as several people do…)

1 Like