You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-12Lines changed: 22 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,15 @@
6
6
</h1>
7
7
A command line tool to run your code against sample test cases. Without leaving the terminal :)
8
8
9
+
#### Demo
10
+

11
+
12
+
#### Supported sites
13
+
+ Codeforces
14
+
+ Codechef
15
+
+ Spoj
16
+
+ Hackerrank
17
+
9
18
#### Installation
10
19
##### Build from source
11
20
+`git clone https://github.com/coderick14/ACedIt`
@@ -44,7 +53,7 @@ optional arguments:
44
53
```
45
54
During installation, the default site is set to `codeforces` and the default working directory is set to `/home/your-username/ACedIt`. You can change them anytime using the above mentioned flags.
46
55
47
-
ACedIt requires the following working directory structure.
56
+
ACedIt requires the following working directory structure**(Recommended)**. It also has the added advantage of keeping your work organized :)
48
57
```
49
58
workdir
50
59
|
@@ -63,14 +72,11 @@ workdir
63
72
64
73
```
65
74
During installation, ACedIt will set up the basic working directory structure.
66
-
While prefetching test cases, it will modify the same accordingly without any user intervention.
67
-
But in case you're writing your code first and then using `ACedIt --run <source_file>`, make sure you follow the directory structure mentioned.
75
+
While prefetching test cases, it will modify the same accordingly without any user intervention.
68
76
69
-
#### Supported sites
70
-
+ Codeforces
71
-
+ Codechef
72
-
+ Spoj
73
-
+ Hackerrank
77
+
***But in case you're writing your code in some other directory, you can use `ACedIt --run <SOURCE_FILE> -s SITE -c CONTEST -p PROBLEM`. You can omit `-s` as it'll take the default site.***
78
+
79
+
***But there's no need to specify the `-s`, `-c` and `-p` flags if you follow the above mentioned directory structure (ACedIt will create most of it for you on the fly :)***
74
80
75
81
#### Examples
76
82
+ Fetch test cases for a single problem
@@ -85,16 +91,20 @@ ACedIt -s codechef -c AUG17
85
91
```
86
92
ACedIt -s codeforces -c 86 -p D -f
87
93
```
88
-
+ Test your code against sample cases
94
+
+ Test your code against sample cases (when following the recommended directory structure)
89
95
```
90
96
ACedIt --run D.cpp
91
97
```
92
98
```
93
99
ACedIt --run CHEFFA.py
94
100
```
95
-
96
-
#### Demo
97
-

101
+
+ Test your code against sample cases (from any other directory)
There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
During installation, the default site is set to ``codeforces`` and the default working directory is set to ``/home/your-username/ACedIt``. You can change them anytime using the above mentioned flags.
75
+
During installation, the default site is set to ``codeforces`` and the
76
+
default working directory is set to ``/home/your-username/ACedIt``. You
77
+
can change them anytime using the above mentioned flags.
63
78
64
-
ACedIt requires the following working directory structure.
79
+
ACedIt requires the following working directory structure
80
+
**(Recommended)**. It also has the added advantage of keeping your work
81
+
organized :)
65
82
66
83
::
67
84
@@ -79,23 +96,14 @@ ACedIt requires the following working directory structure.
79
96
| |- Site2
80
97
| | |- Contest1
81
98
| | | |- Problem1
82
-
83
99
84
-
|During installation, ACedIt will set up the basic working directory
85
-
structure.
86
-
|While prefetching test cases, it will modify the same accordingly
87
-
without any user intervention.
88
-
|But in case you’re writing your code first and then using
89
-
``ACedIt --run <source_file>``, make sure you follow the directory
90
-
structure mentioned.
100
+
|During installation, ACedIt will set up the basic working directory structure.
101
+
|While prefetching test cases, it will modify the same accordingly without any user intervention.
91
102
92
-
Supported sites
93
-
^^^^^^^^^^^^^^^
103
+
But in case you’re writing your code in some other directory, you can use ``ACedIt --run <SOURCE_FILE> -s SITE -c CONTEST -p PROBLEM``. You can omit ``-s`` as it’ll take the default site.
104
+
105
+
But there’s no need to specify the ``-s``, ``-c`` and ``-p`` flags if you follow the above mentioned directory structure (ACedIt will create most of it for you on the fly :)
94
106
95
-
- Codeforces
96
-
- Codechef
97
-
- Spoj
98
-
- Hackerrank
99
107
100
108
Examples
101
109
^^^^^^^^
@@ -118,7 +126,7 @@ Examples
118
126
119
127
ACedIt -s codeforces -c 86 -p D -f
120
128
121
-
- Test your code against sample cases
129
+
- Test your code against sample cases (when following the recommended directory structure)
122
130
123
131
::
124
132
@@ -128,20 +136,20 @@ Examples
128
136
129
137
ACedIt --run CHEFFA.py
130
138
139
+
- Test your code against sample cases (from any other directory)
There might be some issues with Spoj, as they have widely varying DOM
143
-
trees for different problems. Feel free to contribute on this. Or
144
-
anything else that you can come up with :)
152
+
There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
0 commit comments