Skip to content

Commit

Permalink
Update task.md (#221)
Browse files Browse the repository at this point in the history
language checked
  • Loading branch information
stephen-hero authored Dec 20, 2023
1 parent 0f28905 commit d9b0378
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions LastPush/CompleteTheProject/task.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
On this step you need to finish the app.
On this step, you need to complete the app.

### Task

Implement the `applyGenerator` function, that accepts `pattern`, `generatorName`, `width` and `height`
and trims the `pattern` and finally applies `canvasGenerator` or `canvasWithGapsGenerator` function.
Implement the `applyGenerator` function, which accepts `pattern`, `generatorName`, `width`, and `height`,
then trims the `pattern`, and finally, applies the `canvasGenerator` or `canvasWithGapsGenerator` function.

<div class="hint" title="Click me to see the new signature of the applyGenerator function">

Expand All @@ -13,12 +13,12 @@ fun applyGenerator(pattern: String, generatorName: String, width: Int, height: I
```
</div>

The possible values for the `generatorName` argument:
The possible values for the `generatorName` argument are:

- `canvas` – calls the `canvasGenerator` function
- `canvasGaps` - calls `canvasWithGapsGenerator` function
- `canvas`it calls the `canvasGenerator` function
- `canvasGaps` - it calls the `canvasWithGapsGenerator` function

The `applyGenerator` function should inform the user about an unexpected filter name by throwing an error.
The `applyGenerator` function should throw an error to alert the user about an unexpected filter name.

<div class="hint" title="Click me to see the patterns generator project example">

Expand All @@ -27,6 +27,6 @@ The `applyGenerator` function should inform the user about an unexpected filter
</div>


Also, the `main` function will be checked - just uncomment code in the `main` function.
Also, the `main` function will be checked - just uncomment the code in the `main` function.

Good luck!

0 comments on commit d9b0378

Please sign in to comment.