diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 12cba71..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,55 +0,0 @@
-# ==========================================
-# IDE & Editors (JetBrains: Rider, IDEA, Android Studio)
-# ==========================================
-.idea/
-*.iml
-*.iws
-*.ipr
-.vscode/
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# ==========================================
-# Database Tools (DBeaver)
-# ==========================================
-.dbeaver/
-.eclipse/
-*.dbeaver-data/
-
-# ==========================================
-# C# / .NET / Visual Studio / Rider builds
-# ==========================================
-bin/
-obj/
-out/
-[D-d]ebug/
-[R-r]elease/
-*.userprefs
-*.pidb
-*.versioncontrol
-*.csproj.user
-
-# ==========================================
-# Android Studio / Gradle / Kotlin
-# ==========================================
-.gradle/
-build/
-local.properties
-.navigation/
-captures/
-.externalNativeBuild
-.cxx/
-*.apk
-*.aab
-*.keystore
-*.jks
-
-# ==========================================
-# OS Generated Files & Logs
-# ==========================================
-.DS_Store
-Thumbs.db
-*.log
-*.tmp
diff --git a/Kotlin 4 b/Kotlin 4
deleted file mode 100644
index 062508e..0000000
--- a/Kotlin 4
+++ /dev/null
@@ -1,42 +0,0 @@
-fun main() {
- println("=== ЧАСТЬ 1: НАБОР СТАРТОВОЙ РУКИ ===")
- var deckSize = 60
- var cardsInHand = 0
- println("сколько карт взять ?")
- var targetDawnInput = readln().toInt()
- while (cardsInHand < targetDawnInput) {
- cardsInHand ++
- deckSize --
- println("[ДОБОР] Взята карта №$cardsInHand. В руке $cardsInHand, в колоде осталось: $deckSize")
- }
-
- println("=== ЧАСТЬ 2: ВАЛИДАЦИЯ СБРОСА ЭНЕРГИИ ===")
- var energyCost: Int
- do {
- println("Сколько энергии требует сбросить атака?")
- energyCost = readln().toInt()
- if (energyCost < 0){
- println("[ОШИБКА] Стоимость атаки не может быть отрицательной! Попробуйте снова.")
- }
- } while ( energyCost < 0)
- println("Стоимость атаки: $energyCost")
-
-
- println("=== ЧАСТЬ 3: АВТОМАТИЧЕСКИЙ БОЙ ===")
- println("Введите начальное HP противника:")
- var enemyHpInput = readln().toInt()
- for (round in (1..10)) {
- println("Итерация $round")
- if (round % 2 == 0){
- println("[Эффект Защиты] Раунд пропускается.")
- continue
- }
- if (round % 2 != 0) {
- enemyHpInput -= 25
- println("Раунд $round: Нанесено 25 урона. У противника осталось $enemyHpInput HP.")
- }
- if (enemyHpInput <= 0){
- println("Покемон противника упал без сил! Прерываем бой")
- break
- }
- }
\ No newline at end of file
diff --git a/Readme.md b/Readme.md
deleted file mode 100644
index b15cc51..0000000
--- a/Readme.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Студент: Балеев Александр Дмитриевич
-* **Группа:** 1128
-* **Курс:** 1
-
-## Список работ
-* [Лабораторная работа №1](./works/lab-01)
-* [Лабораторная работа №2](./works/lab-02)
diff --git a/docker b/docker
deleted file mode 100644
index 36adda8..0000000
--- a/docker
+++ /dev/null
@@ -1,26 +0,0 @@
-CREATE DATABASE dev_db;
-CREATE TABLE users (id SERIAL PRIMARY KEY, name VARCHAR(50));
-INSERT INTO users (name) VALUES ('Alice'), ('Bob');
-SELECT * FROM users;
-INSERT INTO users (name) VALUES ('Charlie');
-SELECT * FROM users ORDER BY id;
-
-
-create table card_set (
- CARD_SET_NAME VARCHAR(255) not null,
- CARD_SET_ID VARCHAR(20) PRIMARY key,
- CARD_SET_SERIES VARCHAR(50) not null,
- CARD_SET_TOTAL_CARDS inteGER not null,
- CARD_SET_data date not null
-);
-insert into card_set (CARD_SET_NAME, CARD_SET_ID, CARD_SET_SERIES, CARD_SET_TOTAL_CARDS, CARD_SET_data) values
-('XY Базовый набор', 'XY1', 'XY', 146, '2014-02-05'),
-('XY Огненная вспышка', 'XY2', 'XY', 106, '2014-05-07'),
-('XY Яростный кулак', 'XY3', 'XY', 111, '2014-08-13'),
-('XY Призрачные силы', 'XY4', 'XY', 119, '2014-11-05'),
-('XY Первобытная дуэль', 'XY5', 'XY', 160, '2015-02-04'),
-('XY Грохочущие небеса', 'XY6', 'XY', 108, '2015-05-06'),
-('XY Древние истоки', 'XY7', 'XY', 98, '2015-08-12'),
-('XY Прорыв', 'XY8', 'XY', 162, '2015-11-04'),
-('XY Тайное превосходство', 'XY9', 'XY', 122, '2016-02-03'),
-('XY Столкновение судеб', 'XY10', 'XY', 124, '2016-05-02');
\ No newline at end of file
diff --git a/shema b/shema
deleted file mode 100644
index f9c214e..0000000
--- a/shema
+++ /dev/null
@@ -1,256 +0,0 @@
-
-create table card_set (
- set_id INT not null generated always as identity primary key,
- set_name VARCHAR(255) not null,
- set_series VARCHAR(20) not null,
- set_total_cards INT not null,
- set_release_date DATE not null
-);
-
-INSERT INTO card_set (
- set_name, set_code, set_series,
- set_total_cards, set_release_date,
- set_logo_url, set_symbol_url
-);
-
-INSERT INTO card_set (set_name, set_id, set_series, set_total_cards, set_release_date) VALUES
- ('XY Базовый набор', 'XY1', 'XY', 146, '2014-02-05', NULL, NULL),
- ('XY Огненная вспышка', 'XY2', 'XY', 106, '2014-05-07', NULL, NULL),
- ('XY Яростный кулак', 'XY3', 'XY', 111, '2014-08-13', NULL, NULL),
- ('XY Призрачные силы', 'XY4', 'XY', 119, '2014-11-05', NULL, NULL),
- ('XY Первобытная дуэль', 'XY5', 'XY', 160, '2015-02-04', NULL, NULL),
- ('XY Грохочущие небеса', 'XY6', 'XY', 108, '2015-05-06', NULL, NULL),
- ('XY Древние истоки', 'XY7', 'XY', 98, '2015-08-12', NULL, NULL),
- ('XY Прорыв', 'XY8', 'XY', 162, '2015-11-04', NULL, NULL),
- ('XY Тайное превосходство', 'XY9', 'XY', 122, '2016-02-03', NULL, NULL),
- ('XY Столкновение судеб', 'XY10', 'XY', 124, '2016-05-02', NULL, NULL);
-
-create table card (
- card_id INT generated always as identity primary key,
- card_name TEXT not null,
- card_number TEXT not null,
- card_set_id VARCHAR(20) not NULL references card_set(set_id),
- card_rarity TEXT,
- card_type TEXT not null check (card_type in ('Pokemon','Trainer','Energy')),
- card_image_url TEXT,
- unique (card_set_id, card_number)
-);
-
-create table pokemon_card (
- pokemon_card_id INT generated always as identity primary key references card(card_id) on delete cascade,
- pokemon_pokedex_number INT references pokemon_species(species_pokedex_number),
- pokemon_pokedex_entry_id INT references pokedex_entry(entry_id),
- pokemon_hp INT,
- pokemon_stage TEXT,
- pokemon_evolves_from TEXT,
- pokemon_retreat_cost INT CHECK (pokemon_retreat_cost between 0 and 4),
- pokemon_sub_type_id INT references pokemon_sub_type(sub_type_id),
- pokemon_category TEXT,
- pokemon_printed_height TEXT,
- pokemon_printed_weight TEXT
-);
-
-INSERT INTO pokemon_card (
- pokemon_card_id,
- pokemon_pokedex_number,
- pokemon_pokedex_entry_id,
- pokemon_hp,
- pokemon_stage,
- pokemon_evolves_from,
- pokemon_retreat_cost,
- pokemon_sub_type_id,
- pokemon_category,
- pokemon_printed_height,
- pokemon_printed_weight
-) VALUES
- (28, 25, NULL, 60, 'Basic', NULL, 1, 1, 'Мышонок', '0.4 м', '6.0 кг');
-
-create table energy_type (
- energy_type_id INT generated always as identity primary key,
- energy_type_name text unique not null,
- energy_type_icon_url text
-);
-
-INSERT INTO energy_type (energy_type_name, energy_type_icon_url) VALUES
- ('Grass',NULL),
- ('Fire',NULL),
- ('Water',NULL),
- ('Lightning',NULL),
- ('Psychic',NULL),
- ('Fighting',NULL),
- ('Darkness',NULL),
- ('Metal',NULL),
- ('Fairy',NULL),
- ('Dragon',NULL),
- ('Colorless',NULL);
-
-
-create table pokemon_sub_type (
- sub_type_id INT generated always as identity primary key,
- sub_type_name TEXT unique not null,
- sub_type_deafault_prize_count INT not null,
- sub_type_global_rule_text text
-);
-
-INSERT INTO pokemon_sub_type (
- sub_type_name, sub_type_default_prize_count, sub_type_global_rule_text
-) VALUES
- ('Normal',1, NULL),
- ('EX',2, 'When a Pokémon-EX is Knocked Out, your opponent takes 2 Prize cards.'),
- ('MEGA',2, 'When a MEGA Evolution Pokémon is Knocked Out, your opponent takes 2 Prize cards.'),
- ('BREAK',1, NULL);
-
-
-create table ability_type (
- ability_type_id INT generated always as identity primary key,
- ability_type_name TEXT not NULL UNIQUE
-);
-
-INSERT INTO ability_type (ability_type_name) VALUES
- ('Ability'),
- ('Poké-Power'),
- ('Poké-Body');
-
-create table attack_name (
- attack_name_id INT generated always as identity primary key,
- attack_name_title TEXT not null UNIQUE
-);
-
-INSERT INTO attack_name (attack_name_title) VALUES
- ('Nuzzle'),
- ('Quick Attack'),
- ('Circle Circuit'),
- ('Thunder Shock');
-
-create table trainer_printed_type (
- printed_type_id INT generated always as identity primary key,
- printed_type_name text unique not null
-);
-
-INSERT INTO trainer_printed_type (printed_type_name) VALUES
- ('Item'),
- ('Supporter'),
- ('Stadium'),
- ('Pokémon Tool');
-
-create table game_mechanic (
- mechanic_id INT generated always as identity primary key,
- mechanic_name TEXT unique not null
-);
-
-create table pokemon_species (
- species_id INT primary key
- species_pokedex_number INT unique,
- species_eng_game TEXT not null,
- species_generation INT,
- species_heigth_m NUMERIC,
- species_weigth_m NUMERIC
-);
-
-INSERT INTO pokemon_species (pokemon_pokedex_number, species_eng_name, species_generation, species_height_m, species_weight_kg) VALUES
- (25, 'Pikachu', 1, 0.4, 6.0),
- (26, 'Raichu', 1, 0.8, 30.0),
- (448, 'Lucario', 4, 1.2, 54.0);
-
-create table pokedex_entry (
- entry_id INT primary key,
- entry_pokedex_number INT not null references pokemon_species(species_pokedex_number) on delete cascade,
- entry_source_game TEXT,
- entry_description TEXT
-);
-
-create table trainer_card (
- trainer_card_id INT primary key references card(card_id) on delete cascade,
- trainer_printed_type_id INT references trainer_printed_type(printed_type_id),
- trainer_effect_text TEXT,
- trainer_is_ace_spec BOOLEAN not null default false
-);
-
-INSERT INTO trainer_card (
- trainer_card_id, trainer_printed_type_id,
- trainer_effect_text, trainer_is_ace_spec
-) VALUES
- (88, 2, 'Switch your Active Pokémon with 1 of your Benched Pokémon.', FALSE);
-
-create table energy_card (
- energy_card_id INT primary key references card(card_id) on delete cascade,
- energy_is_special BOOLEAN not null default false,
- energy_main_type_id INT references energy_type(energy_type_id),
- energy_effect_text TEXT
-);
-
-INSERT INTO energy_card (
- energy_card_id, energy_is_special,
- energy_main_type_id, energy_effect_text
-) VALUES
- (103, TRUE, NULL, 'This card provides 1 Fighting energy. When attached, ...');
-
-create table pokemon_ability (
- ability_pokemon_card_id INT generated always as identity primary key references pokemon_card(pokemon_card_id) on delete cascade,
- ability_type_id INT references ability_type(ability_type_id),
- ability_name TEXT not null,
- ability_effect_text TEXT
-);
-
-create table pokemon_attack_link (
- link_id INT generated always as identity primary key,
- link_pokemon_card_id INT not null references pokemon_card(pokemon_card_id) on delete cascade,
- link_attack_name_id INT not null references attack_name(attack_name_id),
- link_damage_value TEXT,
- link_effect_text TEXT,
- UNIQUE (link_pokemon_card_id, link_attack_name_id)
-);
-
-create table attack_energy_cost (
- cost_id INT generated always as identity primary key,
- cost_link_id INT not null references pokemon_attack_link(link_id) on delete cascade,
- cost_energy_type_id INT references energy_type(energy_type_id),
- cost_quantity INT not null default 1 check (cost_quantity > 0)
-);
-
-create table pokemon_attribute (
- attribute_id INT generated always as identity primary key,
- attribute_pokemon_card_id INT references pokemon_card(pokemon_card_id) on delete cascade,
- attribute_energy_type_id INT references energy_type(energy_type_id),
- attribute_kind TEXT not null check (attribute_kind in ('Weakness','Resistance')),
- attribute_modifier_value TEXT,
- unique (attribute_pokemon_card_id, attribute_energy_type_id, attribute_kind)
-);
-
-create table trainer_mechanic_link (
-mechanic_link_trainer_card_id INT not null references trainer_card(trainer_card_id) on delete cascade,
-mechanic_link_mechanic_id INT not null references game_mechanic(mechanic_id) on delete cascade,
-primary key (mechanic_link_trainer_card_id, mechanic_link_mechanic_id)
-);
-
-create table staging_furious_fists (
- card_id INT generated always as identity primary key,
- card_number TEXT,
- card_name TEXT,
- card_rarity TEXT,
- card_type TEXT,
- card_image_url TEXT
-);
-
-INSERT INTO card (
- card_number, card_set_id, card_name,
- card_rarity, card_type, card_image_url
-)
-SELECT
- s.card_number,
- (SELECT set_id FROM card_set WHERE set_code = 'XY3'),
- s.card_name,
- s.card_rarity,
- s.card_type,
- s.card_image_url
-FROM staging_furious_fists s
-WHERE s.card_type IN ('Pokemon', 'Trainer', 'Energy');
-
-DROP TABLE staging_furious_fists;
-
-
-
-
-
-
-
diff --git a/src/burmolda2/.gitignore b/src/burmolda2/.gitignore
new file mode 100644
index 0000000..3ddbf4c
--- /dev/null
+++ b/src/burmolda2/.gitignore
@@ -0,0 +1,32 @@
+### IntelliJ IDEA ###
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### Kotlin ###
+.kotlin
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/src/burmolda2/.idea/.gitignore b/src/burmolda2/.idea/.gitignore
new file mode 100644
index 0000000..30cf57e
--- /dev/null
+++ b/src/burmolda2/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Ignored default folder with query files
+/queries/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/src/burmolda2/.idea/inspectionProfiles/Project_Default.xml b/src/burmolda2/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..df543e3
--- /dev/null
+++ b/src/burmolda2/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/.idea/kotlinc.xml b/src/burmolda2/.idea/kotlinc.xml
new file mode 100644
index 0000000..3777884
--- /dev/null
+++ b/src/burmolda2/.idea/kotlinc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/.idea/libraries/KotlinJavaRuntime.xml b/src/burmolda2/.idea/libraries/KotlinJavaRuntime.xml
new file mode 100644
index 0000000..c76c711
--- /dev/null
+++ b/src/burmolda2/.idea/libraries/KotlinJavaRuntime.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/.idea/misc.xml b/src/burmolda2/.idea/misc.xml
new file mode 100644
index 0000000..e38d625
--- /dev/null
+++ b/src/burmolda2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/.idea/modules.xml b/src/burmolda2/.idea/modules.xml
new file mode 100644
index 0000000..9f19146
--- /dev/null
+++ b/src/burmolda2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/.idea/vcs.xml b/src/burmolda2/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/src/burmolda2/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/burmolda2.iml b/src/burmolda2/burmolda2.iml
new file mode 100644
index 0000000..43dd653
--- /dev/null
+++ b/src/burmolda2/burmolda2.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/burmolda2/src/Main.kt b/src/burmolda2/src/Main.kt
new file mode 100644
index 0000000..7265465
--- /dev/null
+++ b/src/burmolda2/src/Main.kt
@@ -0,0 +1,14 @@
+//TIP To Run code, press or
+// click the icon in the gutter.
+fun main() {
+ val name = "Kotlin"
+ //TIP Press with your caret at the highlighted text
+ // to see how IntelliJ IDEA suggests fixing it.
+ println("Hello, " + name + "!")
+
+ for (i in 1..5) {
+ //TIP Press to start debugging your code. We have set one breakpoint
+ // for you, but you can always add more by pressing .
+ println("i = $i")
+ }
+}
\ No newline at end of file
diff --git a/works/4.2 b/works/4.2
deleted file mode 100644
index 0d83888..0000000
--- a/works/4.2
+++ /dev/null
@@ -1,38 +0,0 @@
-fun main(){
-
- println("=== ЗАДАНИЕ 1: РАСПАКОВКА БУСТЕРА ===")
- println("Колличество карт в одном бустере ?")
- var cardsInBooster = readln().toInt()
- val totalCardsInBooster = cardsInBooster
- for (cardsInBooster in 1..totalCardsInBooster ){
- println("[БУСТЕР] Распакована карта №$cardsInBooster из $totalCardsInBooster")
-
- }
- println("Всего распаковано карт: $totalCardsInBooster")
-
- println("=== ЗАДАНИЕ 2: РАСПРЕДЕЛЕНИЕ ЭНЕРГИИ ===")
- var energyCards = 10
- for (energy1 in energyCards downTo 0 step 2){
- println("[РАСПРЕДЕЛЕНИЕ] Передано 2 энергии. В запасе осталось:$energy1")
- }
- println("[КОНЕЦ] Запас энергии исчерпан.")
-
- println("=== ЗАДАНИЕ 3: ТРЕНИРОВОЧНЫЕ БРОСКИ ===")
- println("Задайте лимит броксков:")
- var maxFlips = readln().toInt()
- for (flip in 1..maxFlips ){
- println("Бросок №$flip: 0 - орёл, 1 - решка")
- var result = readln().toInt()
- if (result == 0){
- println("Бросок №$flip: Решка. Продолжаем тренировку.")
- continue
- }
- else if (result == 1){
- println("Бросок №$flip: орёл. Цель достигнута.")
- break
- }
-
- }
-
-
-}
\ No newline at end of file
diff --git a/works/Kotlin 4 b/works/Kotlin 4
deleted file mode 100644
index dbae482..0000000
--- a/works/Kotlin 4
+++ /dev/null
@@ -1,44 +0,0 @@
-fun main() {
- println("=== ЧАСТЬ 1: НАБОР СТАРТОВОЙ РУКИ ===")
- var deckSize = 60
- var cardsInHand = 0
- println("сколько карт взять ?")
- var targetDawnInput = readln().toInt()
- while (cardsInHand < targetDawnInput) {
- cardsInHand ++
- deckSize --
- println("[ДОБОР] Взята карта №$cardsInHand. В руке $cardsInHand, в колоде осталось: $deckSize")
- }
-
- println("=== ЧАСТЬ 2: ВАЛИДАЦИЯ СБРОСА ЭНЕРГИИ ===")
- var energyCost: Int
- do {
- println("Сколько энергии требует сбросить атака?")
- energyCost = readln().toInt()
- if (energyCost < 0){
- println("[ОШИБКА] Стоимость атаки не может быть отрицательной! Попробуйте снова.")
- }
- } while ( energyCost < 0)
- println("Стоимость атаки: $energyCost")
-
-
- println("=== ЧАСТЬ 3: АВТОМАТИЧЕСКИЙ БОЙ ===")
- println("Введите начальное HP противника:")
- var enemyHpInput = readln().toInt()
- for (round in (1..10)) {
- println("Итерация $round")
- if (round % 2 == 0){
- println("[Эффект Защиты] Раунд пропускается.")
- continue
- }
- if (round % 2 != 0) {
- enemyHpInput -= 25
- println("Раунд $round: Нанесено 25 урона. У противника осталось $enemyHpInput HP.")
- }
- if (enemyHpInput <= 0){
- println("Покемон противника упал без сил! Прерываем бой")
- break
- }
- }
-
-}
\ No newline at end of file
diff --git a/works/Kotlin lab2 b/works/Kotlin lab2
deleted file mode 100644
index 1fecda9..0000000
--- a/works/Kotlin lab2
+++ /dev/null
@@ -1,40 +0,0 @@
-fun main() {
- println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ВХОДА===")
- println("Текущий ход:")
- val currentTurnInput = readln()
- println("Доступно энергии:")
- val energyInput = readln()
- println("Множитель урона:")
- val multiplierInput = readln()
-
- val currentTurn: Int = currentTurnInput.toInt()
-
- val energy: Int = energyInput.toInt()
-
- val multiplier: Double = multiplierInput.toDouble()
- println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ВХОДА===")
- println("Текущий ход $currentTurn (тип Int)")
- println("Доступно энергии $energy (тип int)")
- println("Множитель урона $multiplier (тип Double)")
-
-
- var cardsPlayed = 0
- println("Игрок выводит Покемона на активную позицию!")
- cardsPlayed += 1
- println("Введите базовый урон Покемона:")
- val baseDamage = readln().toInt()
- println("Применена карта Тренера 'Леди из центра Покемонов'!.11:44")
- cardsPlayed += 1
- println("сколько карт энегии прикрепить к Покемону?")
- val energyAttached = readln().toInt()
- cardsPlayed += energyAttached
- val finalDamage = baseDamage * multiplier
- val turnCheck = currentTurn % 2
- println("ОТЧЕТ О БОЕВОЙ ЭФФЕКТИВНОСТИ")
- println("Тип хода(остаток % 2): $turnCheck")
- println("Всего сыграно карт за ход $cardsPlayed")
- println("Базовый урон $baseDamage | $multiplier")
- println("Итоговый урон по противнику $finalDamage")
-
-
-}
diff --git a/works/kotlin 4.1(1) b/works/kotlin 4.1(1)
deleted file mode 100644
index 315c975..0000000
--- a/works/kotlin 4.1(1)
+++ /dev/null
@@ -1,61 +0,0 @@
-fun main() {
- println("=== ЧАСТЬ 1: НАБОР СТАРТОВОЙ РУКИ ===")
- var deckSize = 60
- var cardsInHand = 0
- println("сколько карт взять ?")
- var targetDawnInput = readln().toInt()
- while (cardsInHand < targetDawnInput) {
- cardsInHand ++
- deckSize --
- println("[ДОБОР] Взята карта №$cardsInHand. В руке $cardsInHand, в колоде осталось: $deckSize")
- }
-
- println("=== ЧАСТЬ 2: ВАЛИДАЦИЯ СБРОСА ЭНЕРГИИ ===")
- var energyCost: Int
- do {
- println("Сколько энергии требует сбросить атака?")
- energyCost = readln().toInt()
- if (energyCost < 0){
- println("[ОШИБКА] Стоимость атаки не может быть отрицательной! Попробуйте снова.")
- }
- } while ( energyCost < 0)
- println("Стоимость атаки: $energyCost")
-
-
- println("=== ЧАСТЬ 3: АВТОМАТИЧЕСКИЙ БОЙ ===")
- println("Введите начальное HP противника:")
- var enemyHpInput = readln().toInt()
- for (round in (1..10)) {
- println("Итерация $round")
- if (round % 2 == 0){
- println("[Эффект Защиты] Раунд пропускается.")
- continue
- }
- if (round % 2 != 0) {
- enemyHpInput -= 25
- println("Раунд $round: Нанесено 25 урона. У противника осталось $enemyHpInput HP.")
- }
- if (enemyHpInput <= 0){
- println("Покемон противника упал без сил! Прерываем бой")
- break
- }
- }
-
-}
-println("Часть 4")
-
-fun main(){
- var damageCounters = 0
- val maxCounters = 5
- while (damageCounters < maxCounters){
- damageCounters ++
- println("Наложен жетон урона №$damageCounters")
- }
- println("часть Б")
-// создаётся мутабельная переменная которой присваевается значение 3
-// Создаётся цикл "Пока" - пока переменная больше нуля
-// Цикл выводит - "Покемон находится под действием эффекта 'Паралич'. Осталось ходов: $statusDuration"
-// И переменная уменьшается на 1 пока переменная не будет равна нулю
-// После выводится "Действие эффекта 'Паралич' закончилось!"
-
-}
\ No newline at end of file
diff --git a/works/kotlin 4.2 b/works/kotlin 4.2
deleted file mode 100644
index 13dfe85..0000000
--- a/works/kotlin 4.2
+++ /dev/null
@@ -1,53 +0,0 @@
-fun main(){
-
- println("=== ЗАДАНИЕ 1: РАСПАКОВКА БУСТЕРА ===")
- println("Колличество карт в одном бустере ?")
- var cardsInBooster = readln().toInt()
- val totalCardsInBooster = cardsInBooster
- for (cardsInBooster in 1..totalCardsInBooster ){
- println("[БУСТЕР] Распакована карта №$cardsInBooster из $totalCardsInBooster")
-
- }
- println("Всего распаковано карт: $totalCardsInBooster")
-
- println("=== ЗАДАНИЕ 2: РАСПРЕДЕЛЕНИЕ ЭНЕРГИИ ===")
- var energyCards = 10
- for (energy1 in energyCards downTo 0 step 2){
- println("[РАСПРЕДЕЛЕНИЕ] Передано 2 энергии. В запасе осталось:$energy1")
- }
- println("[КОНЕЦ] Запас энергии исчерпан.")
-
- println("=== ЗАДАНИЕ 3: ТРЕНИРОВОЧНЫЕ БРОСКИ ===")
- println("Задайте лимит броксков:")
- var maxFlips = readln().toInt()
- for (flip in 1..maxFlips ){
- println("Бросок №$flip: 0 - орёл, 1 - решка")
- var result = readln().toInt()
- if (result == 0){
- println("Бросок №$flip: Решка. Продолжаем тренировку.")
- continue
- }
- else if (result == 1){
- println("Бросок №$flip: орёл. Цель достигнута.")
- break
- }
-
- }
-
- println("=== ЗАДАНИЕ 4: ВЗАИМНЫЙ ПЕРЕВОД ===")
- for (count in 1..4){
- println("Атака Покемона заряжена на $count %")
- }
- println("Покемон готов к использованию супер-способности!")
-
-// Часть (Б):
-// для переменной "turn" создаётся цикл - действуй от цифры 5 до 1
-// во время этого печатай "До конца действия эффекта 'Сон' осталось ходов: и каждый раз печатая цифру от 5 до 1"
-// в конце напачатай "Покемон проснулся и готов к бою!"
-//
-
- println("=====================")
- println("СИМУЛЯЦИЯ ЗАВЕРШЕНА УСПЕШНО!")
- println("=====================")
-}
-
diff --git a/works/kotlin 5.1 b/works/kotlin 5.1
deleted file mode 100644
index 004dfe4..0000000
--- a/works/kotlin 5.1
+++ /dev/null
@@ -1,38 +0,0 @@
-fun main(){
- val trainerHand: MutableList = mutableListOf()
- trainerHand.add("Пикачу")
- trainerHand.add("Энергия огня")
- trainerHand.add("Зелье")
- trainerHand.add("Профессор Оук")
- val remove: Boolean = trainerHand.remove("Зелье")
- println("$remove")
- println("текущий размер руки: ${trainerHand.size} , ${trainerHand.joinToString ( separator = " , " )}")
-
- val prizeCards: MutableList = mutableListOf("Чаризард", "Пикачу", "Чаризард", "Бластойз")
- val sortedCards = prizeCards.toSet()
- println("$sortedCards")
- val contain = sortedCards.filter {sortedCards -> sortedCards.contains("Пикачу")}
- println("$contain")
-
- val cardDeck: MutableMap = mutableMapOf(
- "Пикачу" to "Покемон",
- "Энергия Огня" to "Энергия",
- "Зелье лечения" to "Тренер",
- "Чаризард" to "Покемон",
- "Энергия воды" to "Энергия"
- )
- println("$cardDeck")
- val sortedDeck = cardDeck.filter{it.value == "Покемон"}
- println("$sortedDeck")
-
-
- val transformedDeck = cardDeck.map{it.key.uppercase()}
- println("$transformedDeck")
-
- val counter = cardDeck.count{it.value == "Энергия"}
- println("$counter")
-
- val trainers = cardDeck.filter{it.value == "Тренер"}.map{it.key}.joinToString(",")
- println(" Все тренеры $trainers")
-
-}
\ No newline at end of file
diff --git a/works/lab b/works/lab
deleted file mode 100644
index 57bc3be..0000000
--- a/works/lab
+++ /dev/null
@@ -1,194 +0,0 @@
-Table card {
- card_id int [primary key,not null]
- card_name text [not null]
- card_hp int [not null, check: `card_hp > 0`]
- card_hieght numeric [not null]
- card_weight numeric [not null]
- card_rarity text [not null]
- card_number text [not null]
- card_artist text [not null]
- card_release_date date [not null]
- card_image_url text [not null]
- card_set_id int [not null, ref: > card_set.card_set_id]
- illustrator_id int [not null, ref: > illustrator.illustrator_id]
- card_pokemon_id int [not null]
- trainer_id int
- indexes {
- (card_set_id, card_number) [unique]
- }
-}
-
-
-Table card_set {
- card_set_id int [primary key, not null]
- card_set_releaced_date date
- card_set_name text [not null, unique]
- card_set_code int [not null, unique]
- card_set_total_cards int [not null, unique]
- card_set_release_date date [not null]
- card_set_logo_url text [not null]
- card_set_symbol_url text [not null]
-}
-
-Table attack {
- attack_id int [primary key, not null]
- attack_name text [not null]
- attack_base_damage text [null, check: `attack_base_damage >= 0`]
- attack_effect text
- attack_retreat_cost int [null]
-}
-
-Table card_attack {
- card_attack_id int [primary key]
- card_id int [not null, ref: > card.card_id]
- attack_id int [not null, ref: > attack.attack_id]
- card_attack_position int [null, check: `card_attack_position > 0`]
-}
-
-Table energy_type {
- energy_quantily text [null]
- energy_type_id int [primary key, not null]
- energy_type_name text [not null, unique]
- energy_type_icon_url text [not null]
-}
-
-Table illustrator {
- illustrator_name text [not null]
- illustrator_id int [primary key, not null]
- illustrator_nationality text [null]
-}
-
-Table attack_energy_cost {
- attack_energy_cost_id int [primary key]
- cost_link_id int [not null]
- attack_id int [not null]
- element_type_id int [not null]
- cost_quantity int [not null]
-}
-
-Table pokemon {
- pokemon_id int [primary key,not null]
- pokemon_name text [not null]
- pokemon_hp int [not null, check: `card_hp > 0`]
- pokemon_hieght text [not null]
- pokemon_weight text [not null]
- pokemon_rarity text [not null]
- pokemon_number text [not null]
- pokemon_artist text [not null]
- pokemon_release_date date [not null]
- energy_type_id int [not null]
- attack_energy_cost_id int [not null]
- attack_id int [not null]
- pokemon_rare text [not null]
- trainer_id int [not null]
- pokemon_category text [not null]
- pokemon_pokedex_id int [not null]
- pokemon_stage text [not null]
- pokemon_evolves_from text [not null]
- pokemon_retreat_cost int [not null]
- pokemon_sub_type_id int [not null]
-
-}
-
-Table trainer {
- tranier_id int [primary key,not null]
- trainer_name text [not null, unique]
- trainer_effect_text text [not null]
- trainer_specification text [not null]
- trainer_description text [not null]
- trainer_type text [not null]
- trainer_released_date date [not null]
- trainer_rare text [not null]
- trainer_is_ace_spec logical [null, check: `trainer_is_ace_spec <= 1`]
-}
-
-Table pokemon_sub_type {
- syb_type_id int [not null, primary key]
- syb_type_name text [not null, unique]
- sub_type_default_prize_count int [not null,check: `sub_type_default_prize_count > 0`]
- sub_type_global_rule_text text [not null]
-}
-
-Table ability {
- ability_type_id int [not null, primary key]
- ability_type_name text [not null, unique]
-}
-
-Table attack_name {
- printed_type_id int [not null, primary key]
- printed_type_name text [not null,unique]
-
-}
-
-Table game_mechanic {
- mechanic_id int [not null, primary key]
- mechanic_name text [not null, unique]
-}
-
-Table pokemon_species {
- species_pokedex_number int [not null,primary key]
- species_eng_name text [not null,unique]
- species_generation int [not null]
- species_height_m float [not null]
- species_weight_kg float [not null]
-}
-
-Table pokedex_entry {
- entry_id int [not null, primary key]
- entry_pokedex_number int [not null]
- entry_source_game text [not null]
- entry_description text [not null]
-}
-
-Table energy_card {
- energy_card_id int [not null, primary key]
- energy_is_special logical [not null]
- energy_main_type_id int [not null]
- energy_effect_text text [null]
-}
-
-Table pokemon_ability {
- ability_pokemon_card_id int [not null, primary key]
- ability_type_id int [not null]
- ability_name text [not null]
- ability_effect_text text [not null]
-}
-
-Table pokemon_attack_link {
- link_id int [not null, primary key]
- link_pokemon_card_id int [not null]
- link_attack_name_id int [not null]
- link_damage_value text [not null]
- link_effect_text text [not null]
- indexes {
- (link_pokemon_card_id, link_attack_name_id) [unique]
- }
-}
-Table pokemon_attribute {
- attribute_id int [not null, primary key]
- attribute_pokemon_card_id int [not null]
- attribute_energy_type_id int [not null]
- attribute_kind text [not null]
- attribute_modifier_value text [not null]
- indexes {
- (attribute_pokemon_card_id, attribute_energy_type_id, attribute_kind) [unique]
- }
-}
-Table trainer_mechanic_link {
- mechanic_link_trainer_card_id int [not null]
- mechanic_link_mechanic_id int [not null,ref:]
- primary key (mechanic_link_trainer_card_id, mechanic_link_mechanic_id)
-}
-
-
-Ref: "pokemon"."pokemon_id" "card"."card_pokemon_id"
-
-Ref: "pokemon"."attack_energy_cost_id" ?> "attack_energy_cost"."attack_energy_cost_id"
-
-Ref: "pokemon"."attack_id" ?> "attack"."attack_id"
-
-Ref: "pokemon"."energy_type_id" ?> "energy_type"."element_type_id"
-
-Ref: "trainer"."tranier_id" "pokemon"."trainer_id"
-
-Ref: "card"."trainer_id" ?>? "trainer"."tranier_id"
\ No newline at end of file
diff --git a/works/lab-01/Readme.md b/works/lab-01/Readme.md
deleted file mode 100644
index 388f028..0000000
--- a/works/lab-01/Readme.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Лабораторная работа №1
-
-* **Студент:** [ФИО]
-* **Вариант / Карточка:** [Например: #025 Pikachu]
-
----
-
-## Ключевой код
-```csharp
-// Самая важная часть реализации (методы, структуры, логика)
-public class Card
-{
- public string Name { get; set; }
- public int Hp { get; set; }
-}
diff --git a/works/lab-02/Readme.md b/works/lab-02/Readme.md
deleted file mode 100644
index 9756237..0000000
--- a/works/lab-02/Readme.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Лабораторная работа №2
-
-* **Студент:** [ФИО]
-* **Вариант / Карточка:** [Например: #025 Pikachu]
-
----
-
-## Ключевой код
-```csharp
-// Самая важная часть реализации (методы, структуры, логика)
-public class Card
-{
- public string Name { get; set; }
- public int Hp { get; set; }
-}
diff --git a/works/Котлин 1 b/works/Котлин 1
deleted file mode 100644
index 3642ff9..0000000
--- a/works/Котлин 1
+++ /dev/null
@@ -1,17 +0,0 @@
-fun main(){
- println("Введите имя инспектора:")
- val inspectorName = readln().toString()
- println("Введите имя тренера:")
- val trainerName = readln().toString()
- println("Введите стартового покемона:")
- val starterPokemon = readln().toString()
- println("Введите целевой стадион:")
- val targetGym = readln().toString()
- println("****************************")
- println("ЛИЦЕНЗИЯ ТРЕНЕРА")
- println("Инспектор: $inspectorName")
- println("Тренер: $trainerName [Стартер: $starterPokemon]")
- println("Следущая цель: $targetGym")
- println("******************************")
-
-}
\ No newline at end of file
diff --git a/works/вся бурмолда на всякий b/works/вся бурмолда на всякий
deleted file mode 100644
index 5aa90b7..0000000
--- a/works/вся бурмолда на всякий
+++ /dev/null
@@ -1,260 +0,0 @@
-//fun main(){
-// var damageCounters = 0
-// val maxCounters = 5
-// while (damageCounters < maxCounters){
-// damageCounters ++
-// println("Наложен жетон урона №$damageCounters")
-// }
-// println("часть Б")
-//// создаётся мутабельная переменная которой присваевается значение 3
-//// Создаётся цикл "Пока" - пока переменная больше нуля
-//// Цикл выводит - "Покемон находится под действием эффекта 'Паралич'. Осталось ходов: $statusDuration"
-//// И переменная уменьшается на 1 пока переменная не будет равна нулю
-//// После выводится "Действие эффекта 'Паралич' закончилось!"
-//
-//}
-
-//fun main(){
-//
-// println("=== ЗАДАНИЕ 1: РАСПАКОВКА БУСТЕРА ===")
-// println("Колличество карт в одном бустере ?")
-// var cardsInBooster = readln().toInt()
-// val totalCardsInBooster = cardsInBooster
-// for (cardsInBooster in 1..totalCardsInBooster ){
-// println("[БУСТЕР] Распакована карта №$cardsInBooster из $totalCardsInBooster")
-//
-// }
-// println("Всего распаковано карт: $totalCardsInBooster")
-//
-// println("=== ЗАДАНИЕ 2: РАСПРЕДЕЛЕНИЕ ЭНЕРГИИ ===")
-// var energyCards = 10
-// for (energy1 in energyCards downTo 0 step 2){
-// println("[РАСПРЕДЕЛЕНИЕ] Передано 2 энергии. В запасе осталось:$energy1")
-// }
-// println("[КОНЕЦ] Запас энергии исчерпан.")
-//
-// println("=== ЗАДАНИЕ 3: ТРЕНИРОВОЧНЫЕ БРОСКИ ===")
-// println("Задайте лимит броксков:")
-// var maxFlips = readln().toInt()
-// for (flip in 1..maxFlips ){
-// println("Бросок №$flip: 0 - орёл, 1 - решка")
-// var result = readln().toInt()
-// if (result == 0){
-// println("Бросок №$flip: Решка. Продолжаем тренировку.")
-// continue
-// }
-// else if (result == 1){
-// println("Бросок №$flip: орёл. Цель достигнута.")
-// break
-// }
-//
-// }
-//
-// println("=== ЗАДАНИЕ 4: ВЗАИМНЫЙ ПЕРЕВОД ===")
-// for (count in 1..4){
-// println("Атака Покемона заряжена на $count %")
-// }
-// println("Покемон готов к использованию супер-способности!")
-//
-//// Часть Б
-//// для переменной "turn" создаётся цикл - действуй от цифры 5 до 1
-//// во время этого печатай "До конца действия эффекта 'Сон' осталось ходов: и каждый раз печатая цифру от 5 до 1"
-//// в конце напачатай "Покемон проснулся и готов к бою!"
-////
-//
-// println("=====================")
-// println("СИМУЛЯЦИЯ ЗАВЕРШЕНА УСПЕШНО!")
-// println("=====================")
-//}
-//fun main(){
-// println("Введите номер базового покемона 1 - Пикачу, 2 - Чарамандер, 3 - бульбазавр")
-// var input: Int
-// do {
-// input = readln().toInt()
-// if (input >= 3){
-// println("[ОШИБКА] Неверный номер! Попробуйте снова.")
-// }
-// }
-// while (input > 4)
-// println("[БОЙ] Вы выбрали Покемона № $input")
-//}
-
-
-//fun main(){
-// val deck: MutableList = mutableListOf("Pikachu", "Charizard", "Bulbasaur")
-// val prizes: Set = setOf("Potion", "Energy", "Potion")
-//
-// deck.add("Mewtwo")
-// deck.remove("Bulbasaur")
-//
-// val energyCards = prizes.filter { prizes -> prizes.contains("Energy") }
-// val upperNames = deck.map { card -> card.uppercase() }
-//
-// val cardCounts: Map = mapOf("Pikachu" to 2, "Charizard" to 1)
-// val totalCards = cardCounts.values.sumOf { count -> count }
-//
-// println("Deck status: ${totalCards}")
-//}
-
-//fun main(){
-// val trainerHand: MutableList = mutableListOf()
-// trainerHand.add("Пикачу")
-// trainerHand.add("Энергия огня")
-// trainerHand.add("Зелье")
-// trainerHand.add("Профессор Оук")
-// val remove: Boolean = trainerHand.remove("Зелье")
-// println("$remove")
-// println("текущий размер руки: ${trainerHand.size} , ${trainerHand.joinToString ( separator = " , " )}")
-//
-// val prizeCards: MutableList = mutableListOf("Чаризард", "Пикачу", "Чаризард", "Бластойз")
-// val sortedCards = prizeCards.toSet()
-// println("$sortedCards")
-// val contain = sortedCards.filter {sortedCards -> sortedCards.contains("Пикачу")}
-// println("$contain")
-//
-// val cardDeck: MutableMap = mutableMapOf(
-// "Пикачу" to "Покемон",
-// "Энергия Огня" to "Энергия",
-// "Зелье лечения" to "Тренер",
-// "Чаризард" to "Покемон",
-// "Энергия воды" to "Энергия"
-// )
-// println("$cardDeck")
-// val sortedDeck = cardDeck.filter{it.value == "Покемон"}
-// println("$sortedDeck")
-//
-//
-// val transformedDeck = cardDeck.map{it.key.uppercase()}
-// println("$transformedDeck")
-//
-// val counter = cardDeck.count{it.value == "Энергия"}
-// println("$counter")
-//
-// val trainers = cardDeck.filter{it.value == "Тренер"}.map{it.key}.joinToString(",")
-// println(" Все тренеры $trainers")
-//
-//}
-
-
-//fun main(){
-// val pokemonHp = readln().toInt()
-// val energyAttached = readln().toInt()
-// val element = readln().toString()
-// if (pokemonHp <= 3){
-// println("Покемон нокаутирован")
-// }
-// else println("Покемон в строю")
-// if (energyAttached >= 3){
-// println("Доступна атака 'Giga Impact'")
-// }
-// else println("Недостаточно энергии для 'Giga Impact'")
-// println("Введите стоимость сброса энергии")
-// val energyCost = readln().toInt()
-// do {
-// if (energyCost > 0){
-// println("[ОШИБКА] Стоимость не может быть отрицательной! Попробуйте снова.")
-// }
-// }
-// while (energyCost < 0)
-// println("[УСПЕХ] Стоимость принята:$energyCost")
-// val weaknessMultiplier: Double = when(element){
-// "Water" -> 2.0
-// "Fire" -> 1.5
-// "Grass" -> 1.2
-// else -> 1.0
-// }
-// val hpPercent = readln().toInt()
-// val healthState: String = when(hpPercent){
-// 0 -> "Нокаут"
-// (1..20) -> "Критическое состояние"
-// (21..70) -> "Поврежден"
-// else -> "Отличное состояние"
-//
-// }
-// println("=== ОТЧЁТ О ХОДЕ ===")
-// println("HP:$hpPercent")
-// println("Статус:")
-// println("Атака:")
-// println("Стоимость энергии:$energyAttached")
-// println("Множитель слабости:$weaknessMultiplier")
-// println("Состояние:$healthState")
-//
-//
-//}
-
-
-//fun main(){
-// // создаётся мутабельный список колода в нём по умолчанию записаны значения "Pikachu", "Charizard", "Bulbasaur"
-// val колода: MutableList = mutableListOf("Pikachu", "Charizard", "Bulbasaur")
-// // создаётся множество призы в нём по умолчанию записаны значения "Potion", "Energy", "Potion"
-// val призы: Set = setOf("Potion", "Energy", "Potion")
-// // в список колода добавляют значение "Mewtwo"
-// колода.add("Mewtwo")
-// // из списка колода убирают значение "Bulbasaur"
-// колода.remove("Bulbasaur")
-// // создаётся переменная карты энергии в неё записывают отфильтрованные значения из списка колода по типу карта и отсортированные по типу Energy
-// val картыЭнергии = колода.filter { карта -> карта.contains("Energy") }
-// // создаётся переменная высокиеИммена в неё записывают преобразованные значения из списка колода по типу карта и преобразованные по типу верхнего регистра
-// val высокиеИммена = колода.map { карта -> карта.uppercase() }
-// // создаётся переменная в которую помощью пробразователя карта по значению строка,целове число и значение Pikachu преобразовывется в 2,значение Charizard преобразовывется в 1
-// val счётчикКарт: Map = mapOf("Pikachu" to 2, "Charizard" to 1)
-// // создаётся переменная всегоКарт в которую записывают сумму из счётчикКарт по значению счётчик
-// val всегоКарт = счётчикКарт.values.sumOf { счётчик -> счётчик }
-// // нарисуй Статус колоды с помощью $ значение из списка колода с разделителем | при помощи "separator"
-// println("Статус колоды: ${колода.joinToString(separator = " | ")}")
-//
-//}
-
-//fun main() {
-//// создаём мутабельное множество призовыеКарты в него по умолчанию записаны значения "Pikachu", "Charizard", "Pikachu"
-// val призовыеКарты: MutableSet = mutableSetOf("Pikachu", "Charizard", "Pikachu")
-//// создаём множество типыЭнергии в него по умолчанию записаны значения "Fire", "Water", "Fire", "Grass"
-// val типыЭнергии: Set = setOf("Fire", "Water", "Fire", "Grass")
-//// в множество призовыеКарты добавляем значение Mewtwo
-// призовыеКарты.add("Mewtwo")
-//// из множества призовыеКарты убираем значение Charizard
-// призовыеКарты.remove("Charizard")
-//// в переменную сПикачу записываем значения Pikachu из призовыеКарты
-// val сПикачу = призовыеКарты.contains("Pikachu")
-//// переменная уникальнаяЭнергия равна типыЭнергии преобразованная в множество
-// val уникальнаяЭнергия = типыЭнергии.toSet()
-//// переменная огненныеКарты равна призовыеКарты отфильрованная по значению Char
-// val огненныеКарты = призовыеКарты.filter { карта -> карта.contains("Char") }
-//// переменная высокиеИмена равна призовые карты преобразованная по значению карта по типу верхнего регистра
-// val высокиеИмена = призовыеКарты.map { карта -> карта.uppercase() }
-//// переменная всеКарты равна призовыеКарты объединённая по типу типыЭнергии
-// val всеКарты = призовыеКарты.union(типыЭнергии)
-//// переменная обычныеКарты равна призовыеКарты объединённая по типу общие элементы по типу типыЭнергии
-// val обычныеКарты = призовыеКарты.intersect(типыЭнергии)
-//// переменная толькоПризы равна призовыеКарты разность множествт по типу типыЭнергии
-// val толькоПризы = призовыеКарты.subtract(типыЭнергии)
-//// переменная всеУникальные равна всеКарты подсчитать колличество элеметнов
-// val всеУникальные = всеКарты.count()
-//// нарисуй Статус приза с помощью $ вывести значение призовыеКарты с разделителем | при помощи "separator"
-// println("Prize status: ${призовыеКарты.joinToString(separator = " | ")}")
-//}
-
-//fun main(){
-// val card: String? = null
-// println(card!!.length)
-// // ошибка т,к !! - бля буду что не нулл а переменная нулл
-//}
-
-//fun main(){
-// val card: String? = "Pikachu"
-// val length: Int = card?.length?: 0
-// println("Длинна карты $length")
-//
-//}
-
-//fun main(){
-// val rawName: String? = "Ash"
-// val trimmed: String? = rawName?.trim()
-// val upper: String? = trimmed?.uppercase()
-//}
-
-
-
-
-
-
diff --git a/works/котлин 3 b/works/котлин 3
deleted file mode 100644
index ba95885..0000000
--- a/works/котлин 3
+++ /dev/null
@@ -1,47 +0,0 @@
-fun main(){
- println("Введите хп")
- val currentHpInput = readln().toInt()
- println("Введите колличество карт энергии")
- val energyAttachedInput = readln().toInt()
- if (currentHpInput <= 0 ){
- println("Нокаут")
- }
- else {
- println("Покемон готов к бою")
- }
- val attackStatus: String
- if (energyAttachedInput >= 3){
- println("Доступна атака Giga impact")
- }
- else {
- println("Нехватка ресурсов")
- }
- println("Введите название карты тренера")
- val trainerCardInput = readln().toString()
- when (trainerCardInput) {
- "Potion" -> println("+30 HP")
- "Professor's Research" -> println("+ 7 кард из колоды")
- "Switch" -> println("Замена покемона")
- else -> println()
- }
- println("Введите элемент")
- val elementInput = readln().toString()
- val weaknessMultiplier = when (elementInput) {
- "Water" -> {println("слабость к электрчеству");2.0}
- "Fire" -> {println("Слабость к воде");1.5}
- "Grass" -> {println("Слабость к ")}
- else -> {println("Базовый коэффицент");1.0}
- }
- println("введите текущий % хп (0-100)")
- val hpPercent = readln().toInt()
- val healthState = when {
- hpPercent == 0 -> "Нокаут"
- hpPercent in (1..20) -> "Критическое состояние"
- hpPercent in (21..70) -> "Поврежден"
-
- else -> println("Отличное состояние")
- }
- println("ИТОГОВЫЙ СТАТУС БОЯ")
- println("Множитель урона $weaknessMultiplier")
- println("Категория здоровья $healthState")
-}
diff --git a/лаб базы-1.txt b/лаб базы-1.txt
deleted file mode 100644
index 9f8f78d..0000000
--- a/лаб базы-1.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Table illustrator {
- illustrator_id int
- illustrator_name text
-}
-
-Table card {
- card_id int
- card_name text
- card_stage text
- card_hp int
- card_number_in_set text
- card_category text
- card_height_m numeric
- card_weight_kg numeric
- card_retreat_cost int
- card_release_date date
-}
-
-Table card_set {
- card_set_id int
- card_set_name text
- card_set_quanity int
- card_set_release_date date
-}
-
-Table attack {
- attack_id int
- attack_base_damage text
- attack_text_effect text
-}
-
-Table element_type {
- element_type_id int
- element_type_name text
-}