Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update task.md #42

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions oldSchoolServer/oldSchoolServerColorsList/task.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
It's time for coding! The first task is to implement the `getAllPossibleColors`
method in the `GameFunctionsService` which is already defined in the `org.jetbrains.kotlin.course.old.school.functions`
method in `GameFunctionsService`, which is already defined in the `org.jetbrains.kotlin.course.old.school.functions`
package in the `GameFunctionsService.kt` file.

This function should return lowercase names of all _entities_ of the `Color` enum class from the `org.jetbrains.kotlin.course.old.school.photo` package.

After implementing this task, the list of possible colors will be not empty:
After implementing this task, the list of possible colors will be non-empty:

![Current state](../../utils/src/main/resources/images/old/school/states/state_1.gif)

Expand All @@ -22,9 +22,9 @@ val allColors = Color.entries
```
</div>

<div class="hint" title="How to name of an enum entry?">
<div class="hint" title="How to name an enum entry?">

You can use `name` property:
You can use the `name` property:
```kotlin
enum class Color {
White,
Expand Down
Loading