@cyrilverloop/codingame-configuration

中文文档
1.31.0发布于 2026/11/02MIT零依赖近 30 天下载 6.1万

A project that contains CodinGame input, output and default code.

原始使用文档
文档目录5 节
  1. Content
  2. Install
  3. JavaScript / TypeScript
  4. PHP
  5. Contributing

CodinGame configuration

A project that contains CodinGame input, output and default code. It is used by projects like CodinGame PHP tests and CodinGame JavaScript tests to generate code and test in PHP and JavaScript respectively. Those projects let you code in your favorite IDE, outside of the CodinGame web site.

License

Content

The ./config/ directory contains the configuration from CodinGame. It contains four sub-directories corresponding to the four levels of difficulty : easy, medium, hard and expert.

Here is an example for the easy "ASCII Art" puzzle :

  • files are in the ./config/easy/ASCIIArt/ directory;
  • default codes are in the ./config/easy/ASCIIArt/code/ directory. Every files are named CGCode.[language_entension]. Example : CGCode.php for the PHP language. See languages for a list of extensions;
  • the ./config/easy/ASCIIArt/input/ directory contains the inputs of each tests. One file per test;
  • the ./config/easy/ASCIIArt/output/ directory contains the expected outputs of each tests. One file per test;
  • the ./config/easy/ASCIIArt/config.json file has the path to the configuration, the name of the puzzle, the link to CodinGame and the tests :
{
    "path": "easy/ASCIIArt",
    "name": "ASCII Art",
    "alphanumName": "ASCIIArt",
    "link": "https://www.codingame.com/ide/puzzle/ascii-art",
    "tests": [
        {
            "name": "Test only one letter: E",
            "alphanumName": "TestOnlyOneLetterE",
            "file": "01 - test only one letter E.txt"
        },
        {
            "name": "Test MANHATTAN",
            "alphanumName": "TestMANHATTAN",
            "file": "02 - test MANHATTAN.txt"
        }
    ]
}

Install

JavaScript / TypeScript

npm i @cyrilverloop/codingame-configuration

PHP

composer require "cyril-verloop/codingame-configuration"

Contributing

Contributions are welcome following the contribution guide.

版本与发布记录

@cyrilverloop/codingame-configuration 共发布 38 个版本,首次发布于 2024/05/24;过去 12 个月发布了 11 个版本。

版本发布日期距今
1.31.0latest2026/11/028 天前
1.30.02026/09/301 个月前
1.29.02026/08/312 个月前
1.28.02026/06/304 个月前
1.27.02026/05/315 个月前
1.26.02026/04/306 个月前

关于 @cyrilverloop/codingame-configuration 的常见问题

@cyrilverloop/codingame-configuration 是什么?

A project that contains CodinGame input, output and default code.

如何安装 @cyrilverloop/codingame-configuration?

在项目目录运行 npm install @cyrilverloop/codingame-configuration,或使用 pnpm add / yarn add / bun add。

@cyrilverloop/codingame-configuration 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cyrilverloop__codingame-configuration 是否存在。

@cyrilverloop/codingame-configuration 可以商用吗?

@cyrilverloop/codingame-configuration 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cyrilverloop/codingame-configuration 的下载量有多少?

根据 npm 官方下载统计,@cyrilverloop/codingame-configuration 在 2026/10/11 – 2026/11/09 这 30 天内被下载 60,836 次,日均约 2,028 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cyrilverloop/codingame-configuration 还在维护吗?

最新版本 1.31.0 发布于 2026/11/02(8 天前);至今共发布 38 个版本,其中过去 12 个月发布了 11 个;首次发布于 2024/05/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。