-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmerging-cpp-files-readme.txt
46 lines (33 loc) · 1.04 KB
/
merging-cpp-files-readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
To merge a normal cpp project to a single file, which is accepted by codingame platform do:
Installation:
sudo apt update
sudo apt install nodejs
nodejs -v
sudo apt install npm
sudo npm i -g codingame-cpp-merge
Usage (assuming your main file is main.cpp):
codingame-merge -o cg.cpp -w /path/to/cppfiles -m main.cpp
Sync cg.cpp in your browser with condigame website.
MacOS:
brew install node
npm i -g codingame-cpp-merge
VS Code example tasks file:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "cd /mnt/c/jure/Programiranje/codingame/merge && codingame-merge -o cg.cpp -w /mnt/c/jure/repos/codingame-puzzle-solutions/bots/cultist-wars/ -m main.cpp",
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}