-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Read tournament configs from a json config - 1st step, reading …
…the last game, first code draft.
- Loading branch information
1 parent
ea36091
commit 6e91e7f
Showing
8 changed files
with
109 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.chgk.config | ||
|
||
import com.chgk.excel.ExcelParser | ||
import com.chgk.excel.StandardXlsxParser | ||
|
||
data class GeneratorConfig( | ||
val visibleTeamNames: List<String>, | ||
val inputExcelFilePath: String, | ||
val htmlFileName: String, | ||
val excelParser: ExcelParser = StandardXlsxParser | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.chgk.config | ||
|
||
import com.chgk.model.Tournament | ||
|
||
data class TournamentConfig( | ||
val tournament: Tournament, | ||
val generatorConfig: GeneratorConfig | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.chgk.config | ||
|
||
data class TournamentConfigs( | ||
val configs: List<TournamentConfig> = listOf() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"configs2": [], | ||
"configs": [ | ||
{ | ||
"tournament": { | ||
"id": 9416, | ||
"name": "Кубок Бесконечности: первый этап. Камень Реальности (синхрон)", | ||
"city": "Дюссельдорф", | ||
"tours": [ | ||
{ | ||
"number": 1, | ||
"editor": "Полевой / Рыбачук" | ||
}, | ||
{ | ||
"number": 2, | ||
"editor": "Полевой / Рыбачук / Скиренко / Мереминский" | ||
}, | ||
{ | ||
"number": 3, | ||
"editor": "Скиренко / Мереминский" | ||
} | ||
] | ||
}, | ||
|
||
"generatorConfig": { | ||
"visibleTeamNames": [ | ||
"Ясен Пень", | ||
"И", | ||
"Проти вiтру", | ||
"Без понятия", | ||
"Авось", | ||
"Счастливое число", | ||
"Черемушки", | ||
"Сфинкс-party", | ||
"Не читал, но обсуждаю", | ||
"ЖмеR" | ||
], | ||
|
||
"inputExcelFilePath": "tournament-tours-9416-15-Sep-2023.xlsx", | ||
"htmlFileName": "besk-cup-2023-1-duesseldorf.html" | ||
} | ||
} | ||
] | ||
} |