Skip to content

Commit d1efd63

Browse files
committed
Remove squad and show from public tournament types
1 parent 89c47c8 commit d1efd63

File tree

5 files changed

+4
-30
lines changed

5 files changed

+4
-30
lines changed

TOURNAMENTS_EN.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ Each tournament is a unique event with its own settings, but there are general p
4141
- **How we supplement participants**: If there aren’t enough participants to ensure fair play, we add bots to maintain balance.
4242
- **Who it's for**: For those who love dynamic competitions with the opportunity to test their skills at different levels.
4343

44-
### Show
45-
46-
- **Description**: A tournament where each player competes alone, solving tasks in front of an audience.
47-
- **How it works**: Players solve tasks, competing for the best time and the most correct solutions. Each participant fights for themselves, and at the end of the tournament, the best player is determined.
48-
- **How we supplement participants**: To maintain competition, we can add bots that will act as opponents.
49-
- **Who it's for**: For those who like to showcase their skills and aim to be the best in individual scoring.
50-
5144
### Swiss
5245

5346
- **Description**: A Swiss-system tournament where participants play several rounds, meeting opponents with similar levels of success in each round.
@@ -61,10 +54,3 @@ Each tournament is a unique event with its own settings, but there are general p
6154
- **How it works**: Participants face off in duels, where the winner advances, and the loser is eliminated. The tournament continues until there is one champion.
6255
- **How we supplement participants**: If there aren't enough participants for fair competition, we add bots.
6356
- **Who it's for**: For those who love intense duels and are ready to fight for the champion title.
64-
65-
### Squad
66-
67-
- **Description**: A team tournament where participants are divided into small teams and compete against each other.
68-
- **How it works**: The tournament involves teams, each consisting of several players. Teams compete against each other, and the victory depends on the overall contribution of each team member.
69-
- **How we supplement participants**: If teams lack players, we add bots to ensure equal chances for everyone.
70-
- **Who it's for**: For those who prefer working in a team and are ready to use their skills in team strategy.

TOURNAMENTS_RU.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@
4141
- **Как мы дополняем участников**: Если участников недостаточно, чтобы обеспечить честную игру, мы добавляем ботов, чтобы сохранить баланс.
4242
- **Кому это подходит**: Для тех, кто любит динамичные соревнования с возможностью тестировать свои навыки на разных уровнях.
4343

44-
### Show
45-
46-
- **Описание**: Турнир, где каждый игрок выступает в одиночку, решая задачи на публику.
47-
- **Как это работает**: Игроки решают задачи, соревнуясь за лучшее время и наибольшее количество правильных решений. Каждый участник борется сам за себя, и в конце турнира определяется лучший игрок.
48-
- **Как мы дополняем участников**: Чтобы поддерживать конкуренцию, мы можем добавлять ботов, которые будут выступать как соперники.
49-
- **Кому это подходит**: Для тех, кто любит демонстрировать свои навыки и стремится стать лучшим в индивидуальном зачете.
50-
5144
### Swiss
5245

5346
- **Описание**: Турнир по швейцарской системе, где участники играют несколько раундов, и каждый раунд они встречаются с соперниками, имеющими схожий уровень успеха.
@@ -61,10 +54,3 @@
6154
- **Как это работает**: Участники встречаются в дуэлях, где победитель продвигается дальше, а проигравший выбывает. Турнир продолжается, пока не останется один чемпион.
6255
- **Как мы дополняем участников**: Если участников недостаточно для честной конкуренции, мы добавляем ботов.
6356
- **Кому это подходит**: Для тех, кто любит напряженные дуэли и готов к битве за титул чемпиона.
64-
65-
### Squad
66-
67-
- **Описание**: Командный турнир, где участники делятся на небольшие команды и соревнуются друг с другом.
68-
- **Как это работает**: В турнире участвуют команды, каждая из которых состоит из нескольких игроков. Команды соревнуются друг с другом, и победа зависит от общего вклада каждого члена команды.
69-
- **Как мы дополняем участников**: Если в командах не хватает игроков, мы добавляем ботов, чтобы обеспечить равные шансы для всех.
70-
- **Кому это подходит**: Для тех, кто предпочитает работать в команде и готов использовать свои навыки в командной стратегии.

services/app/apps/codebattle/lib/codebattle/tournament/tournament.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ defmodule Codebattle.Tournament do
5858
@task_strategies ~w(random_per_game random_per_round sequential)
5959
@ranking_types ~w(void by_player by_clan by_player_95th_percentile)
6060
@types ~w(individual team show swiss arena versus squad)
61+
@public_types ~w(individual team swiss arena versus)
6162

6263
@default_match_timeout Application.compile_env(:codebattle, :tournament_match_timeout)
6364

@@ -201,4 +202,5 @@ defmodule Codebattle.Tournament do
201202
def task_strategies, do: @task_strategies
202203
def ranking_types, do: @ranking_types
203204
def types, do: @types
205+
def public_types, do: @public_types
204206
end

services/app/apps/codebattle/lib/codebattle_web/live/components/tournament/create_form.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule CodebattleWeb.Live.Tournament.CreateFormComponent do
4545
</div>
4646
<div class="d-flex flex-column justify-content-between w-100 ml-md-3 ml-lg-3 ml-xl-3">
4747
<%= label(f, :type) %>
48-
<%= select(f, :type, Codebattle.Tournament.types(), class: "custom-select") %>
48+
<%= select(f, :type, Codebattle.Tournament.public_types(), class: "custom-select") %>
4949
<%= error_tag(f, :type) %>
5050
</div>
5151
</div>

services/app/apps/codebattle/lib/codebattle_web/live/components/tournament/edit_form.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule CodebattleWeb.Live.Tournament.EditFormComponent do
4242
</div>
4343
<div class="d-flex flex-column justify-content-between w-100 ml-md-3 ml-lg-3 ml-xl-3">
4444
<%= label(f, :type) %>
45-
<%= select(f, :type, Codebattle.Tournament.types(), class: "custom-select") %>
45+
<%= select(f, :type, Codebattle.Tournament.public_types(), class: "custom-select") %>
4646
<%= error_tag(f, :type) %>
4747
</div>
4848
</div>

0 commit comments

Comments
 (0)