Skip to content

Commit 2367851

Browse files
VitalyVitaly
authored andcommitted
Add comments
1 parent 71355c6 commit 2367851

File tree

1 file changed

+85
-87
lines changed

1 file changed

+85
-87
lines changed
Lines changed: 85 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,85 @@
1-
defmodule Codebattle.Tournament do
2-
@moduledoc """
3-
THis is description of tourmanets based on that we want to generate tournaments_schedule for the current season.
4-
5-
I want to generate upcoming graded tournaments for
6-
rookie, challenge, pro, elite, masters, grand_slam
7-
We have 4 seasons
8-
9-
Season 0: Sep 21 - Dec 21
10-
Season 1: Dec 21 - Mar 21
11-
Season 2: Mar 21 - Jun 21
12-
Season 3: Jun 21 - Sep 21
13-
14-
15-
For each tournament i need insert into database
16-
It should looks like, for each tournament
17-
Prettify description with markdown
18-
19-
For tournaments that are only once in the day pic 16 UTC
20-
and i don't need other tournaments that day.
21-
GrandSlam should be the day when we finish season.
22-
23-
Repo.insert(%{
24-
25-
starts_at: {UTC generated datetime}
26-
grade: "rookie",
27-
name: "Rookie, Season:0, #1",
28-
description: "
29-
Codebattle Season contest
30-
Points : {get from @grade_points based on grade}
31-
32-
33-
Play in season tournaments and earn points.
34-
Win the season and get achievement!
35-
36-
4 seasons:application
37-
38-
"
39-
40-
})
41-
42-
"""
43-
44-
@grade_points %{
45-
# Open tournaments
46-
# All tasks are existing
47-
# Casual/unranked mode, no points awarded
48-
# Tasks: free play, any level, not ranked, created by user
49-
"open" => [],
50-
51-
# Rookie — every 1 hours
52-
# All tasks are existing
53-
# Tasks: 5 existing easy tasks
54-
# Designed for frequent play and grinding
55-
"rookie" => [8, 4, 2],
56-
57-
# Challenger — daily
58-
# All tasks are existing
59-
# Tasks: 3 existing easy tasks + 1 existing medium task
60-
# Daily backbone tournaments for steady point growth
61-
"challenger" => [64, 32, 16, 8, 4, 2],
62-
63-
# Pro — weekly
64-
# All tasks are existing
65-
# Tasks: 4 existing easy tasks + 2 existing medium tasks
66-
# Mid-level weekly tournaments with more challenges
67-
"pro" => [128, 64, 32, 16, 8, 4, 2],
68-
69-
# Elite — every two weeks
70-
# All tasks are existing
71-
# Tasks: 5 existing easy tasks + 3 existing medium tasks
72-
# Advanced difficulty and higher prestige
73-
"elite" => [256, 128, 64, 32, 16, 8, 4, 2],
74-
75-
# Masters — once per month on the 21st (evening, two per day)
76-
# All tasks are new
77-
# Tasks: 5 easy tasks + 2 medium tasks
78-
# Monthly major tournaments with fresh content
79-
"masters" => [1024, 512, 256, 128, 64, 32, 16, 8, 4, 2],
80-
81-
# Grand Slam — four times per year (21 Mar, 21 Jun, 21 Sep, 21 Dec)
82-
# All tasks are new
83-
# Tasks: 5 easy tasks + 3 medium tasks + 1 hard task
84-
# Seasonal finals, always ends the season
85-
"grand_slam" => [2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2]
86-
}
87-
end
1+
# defmodule Codebattle.Tournament do
2+
# @moduledoc """
3+
# THis is description of tourmanets based on that we want to generate tournaments_schedule for the current season.
4+
5+
# I want to generate upcoming graded tournaments for
6+
# rookie, challenge, pro, elite, masters, grand_slam
7+
# We have 4 seasons
8+
9+
# Season 0: Sep 21 - Dec 21
10+
# Season 1: Dec 21 - Mar 21
11+
# Season 2: Mar 21 - Jun 21
12+
# Season 3: Jun 21 - Sep 21
13+
14+
# For each tournament i need insert into database
15+
# It should looks like, for each tournament
16+
# Prettify description with markdown
17+
18+
# For tournaments that are only once in the day pic 16 UTC
19+
# and i don't need other tournaments that day.
20+
# GrandSlam should be the day when we finish season.
21+
22+
# Repo.insert(%{
23+
24+
# starts_at: {UTC generated datetime}
25+
# grade: "rookie",
26+
# name: "Rookie, Season:0, #1",
27+
# description: "
28+
# Codebattle Season contest
29+
# Points : {get from @grade_points based on grade}
30+
31+
# Play in season tournaments and earn points.
32+
# Win the season and get achievement!
33+
34+
# 4 seasons:application
35+
36+
# "
37+
38+
# })
39+
40+
# """
41+
42+
# @grade_points %{
43+
# # Open tournaments
44+
# # All tasks are existing
45+
# # Casual/unranked mode, no points awarded
46+
# # Tasks: free play, any level, not ranked, created by user
47+
# "open" => [],
48+
49+
# # Rookie — every 1 hours
50+
# # All tasks are existing
51+
# # Tasks: 5 existing easy tasks
52+
# # Designed for frequent play and grinding
53+
# "rookie" => [8, 4, 2],
54+
55+
# # Challenger — daily
56+
# # All tasks are existing
57+
# # Tasks: 3 existing easy tasks + 1 existing medium task
58+
# # Daily backbone tournaments for steady point growth
59+
# "challenger" => [64, 32, 16, 8, 4, 2],
60+
61+
# # Pro — weekly
62+
# # All tasks are existing
63+
# # Tasks: 4 existing easy tasks + 2 existing medium tasks
64+
# # Mid-level weekly tournaments with more challenges
65+
# "pro" => [128, 64, 32, 16, 8, 4, 2],
66+
67+
# # Elite — every two weeks
68+
# # All tasks are existing
69+
# # Tasks: 5 existing easy tasks + 3 existing medium tasks
70+
# # Advanced difficulty and higher prestige
71+
# "elite" => [256, 128, 64, 32, 16, 8, 4, 2],
72+
73+
# # Masters — once per month on the 21st (evening, two per day)
74+
# # All tasks are new
75+
# # Tasks: 5 easy tasks + 2 medium tasks
76+
# # Monthly major tournaments with fresh content
77+
# "masters" => [1024, 512, 256, 128, 64, 32, 16, 8, 4, 2],
78+
79+
# # Grand Slam — four times per year (21 Mar, 21 Jun, 21 Sep, 21 Dec)
80+
# # All tasks are new
81+
# # Tasks: 5 easy tasks + 3 medium tasks + 1 hard task
82+
# # Seasonal finals, always ends the season
83+
# "grand_slam" => [2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2]
84+
# }
85+
# end

0 commit comments

Comments
 (0)