Solved is still in early development. Its API will change as it reaches stability.
Solved is a tool designed for you to reach your maximum potential. No more waiting while a bunch of kids brew up some chemical in a laboratory, no more watching as a SeƱora Julio explains all about the preterite tense. As you are playing Minecraft with the boys, Solved will bend the laws of time and carefully, with extreme precision, solve your edpuzzle assignment.
## Installation
There are multiple ways to install Solved:
### From Github Releases
Pre-built binaries are available for 64-bit Windows, macOS, and Linux from the [GitHub releases](https://github.com/ok-nick/solved/releases) page.
### From Source
You can build the latest release of Solved from crates.io:
```bash
cargo install solved
```
or build the latest and *unstable* work from the main branch:
```bash
cargo install --git https://github.com/ok-nick/solved
```
## Usage
### Getting the assignment id:
The assignment id is essential for Solved to configure your assignment, in order to retrieve this number, open the desired assignment and read the url.
![](assets/examples/assignment-id.png)
### Getting the authentication token:
The authentication token could be a little tricky to find, although there are numerous ways to retrieve it. It varies based on browser, but it is stored as a cookie on `edpuzzle.com` under the name, `token`.
![](assets/examples/token.png)
## Command Line Interface
For more information, run `solved --help`.
### Required Options
- `--help`, `-h`
- Outputs help information for using solved.
- `--version`, `-V`
- Outputs version information of Solved.
- `--auth`, `-a`
- The authentication token used to access the assignment from your account.
- `--verbose`, `-v`
- Enables verbose logging. Can be specified up to two times for more in-depth verbosity.
### `solved show`
Displays a list of all the answers with pretty colors :)
Usage:
```bash
solved show \
--auth
```
### `solved answer`
Answers multiple choice questions.
Usage:
```bash
solved answer \
--auth
--number
```
Use the `--number` argument to answer a specific question number, with respect to notes and concurrent questions.
### `solved complete`
Completes the entire assignment by skipping time and answering all questions.
> **_NOTE:_** Skipping time and answering all questions are essential for automatic assignment completion. At this time Solved is unable to answer open-ended questions.
Usage:
```bash
solved complete \
--auth
```
### `solved skip`
Skips the entire video (unless otherwise specified), removing any time restrictions.
Usage:
```bash
solved skip \
--auth
--time
--index
```
Use the `--time` argument to skip the video to the nearest time in seconds (rounds to the nearest 1/10th of the video's total duration).\
For whatever reason, edpuzzle splits videos into 10 time frames. Using the `--index` argument, you could specify the time frame to skip to.
> **_WARNING:_** The `--time` and `--index` arguments only skip up until the answers you've solved. Although this **is not** the case when skipping the entire assignment.
## License
Solved is available under the terms of the Mozilla Public License, Version 2.0. See [LICENSE](LICENSE) for details.