|
31 | 31 |
|
32 | 32 | ## How to use |
33 | 33 |
|
34 | | -Users are required to solve 30 tasks that take them through the basic constructs of the programming language of their choice. The tasks are designed in such a way that the complexity increases as users progress through the tasks. Users can't move forward until the current task is completed (since the progress is determined by a unique key that is generated upon successful completion). Previously submitted tasks can be viewed as desired by the user but can't be worked on again. |
| 34 | +Users are required to solve 30 tasks that take them through the basic constructs of the programming language of their choice. The tasks are designed in such a way that the complexity increases as users progress through the tasks. Users can't move forward until the current task is completed. Previously submitted tasks can be viewed as desired by the user but can't be worked on again. |
35 | 35 |
|
36 | 36 | - `teachcode` expects you to have a GitHub account. Make sure that you create one if that's not the case. |
37 | 37 | - Navigate to the directory of your choice and type in `teachcode init`. |
38 | 38 | - Follow the instructions as prompted. |
39 | 39 | - Now type in `cd teachcode-solutions`. |
40 | | -- Grab the initial key and type in `teachcode fetchtask <key>`. |
| 40 | +- Type in `teachcode fetchtask`. |
41 | 41 | - Hurray :tada: you've got your first task. |
42 | 42 | - Now you can find a `config.json` and `task1.py` (language of choice) file within the `teachcode-solutions` directory. |
43 | 43 | - Open up your favourite editor and code up the solution. |
44 | 44 | - Now type in `teachcode submit`. |
45 | 45 | - Enter your Git credentials when prompted. |
46 | | -- If the current solution satisfies all test cases, you'll get the key to proceed with. |
47 | | -- Grab the key and type in `teachcode fetchtask <key>`. |
| 46 | +- Fetch the next task with `teachcode fetchtask`. |
48 | 47 |
|
49 | 48 | ## Available Commands |
50 | 49 |
|
51 | 50 | | command | description | |
52 | 51 | | -------------- | ---------------- | |
53 | 52 | | teachcode init | Initializes all the tasks | |
54 | | -| teachcode fetchtask <key> | Fetches the task correponding to key provided | |
| 53 | +| teachcode fetchtask [key] | Fetches the task correponding to key if provided (defaults to the very next task) | |
55 | 54 | | teachcode submit | Submits the current task | |
56 | 55 | | teachcode showkeys | Shows all the keys grabbed | |
57 | 56 | | teachcode showcommands | Lists all the available commands | |
|
0 commit comments