Skip to content

Commit

Permalink
Update task.md
Browse files Browse the repository at this point in the history
language in hints checked
  • Loading branch information
stephen-hero authored Dec 22, 2023
1 parent 7406183 commit a284c7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aliasServer/aliasServerTeams/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Create a data class `Team` in the `jetbrains.kotlin.course.alias.team` package i
to store the number of points in the game. For `points`, set the default value `0`.
- It must have an additional property `name`, which initializes automatically as `"Team#${id + 1}"` and will be shown in the leaderboard.

<div class="hint" title="Click me if you pressed Check and found a compilation error">
<div class="hint" title="Click me if you pressed Check and encountered a compilation error">

If you have a compilation error and you have not solved this step yet, please solve the task and try again.
It is expected behavior, since the code requires the class `Team`, but it does not exist.
If you encounter a compilation error and have not completed this task yet, please solve it first and then try again.
This is expected behavior, since the code requires the class `Team`, which currently does not exist.
</div>


Expand Down Expand Up @@ -37,7 +37,7 @@ It is convenient to use data classes in all cases
when we need just to store something and have automatically implemented methods like `toString`.
</div>

<div class="hint" title="Click me to learn why we use name outside of the constructor">
<div class="hint" title="Click me to learn why we use `name` outside of the constructor">

In this game, the team is defined only by its `id` (as well as the number of points),
and we need a `name` only for a pretty display on the screen.
Expand Down

0 comments on commit a284c7a

Please sign in to comment.