diff --git a/works/lab-01/exercises/.gitignore b/works/lab-01/exercises/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/exercises/.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/works/lab-01/exercises/src/Main.kt b/works/lab-01/exercises/src/Main.kt new file mode 100644 index 0000000..5b3843c --- /dev/null +++ b/works/lab-01/exercises/src/Main.kt @@ -0,0 +1,30 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { +print("Введите тип карты: ") + val cardType: String = readln() +print("Введите подтип карты: ") + val cardSubtype: String = readln() +print("Введите название карты: ") + val cardName: String = readln() +print("Введите описание основного эффекта: ") + val effectText: String = readln() +print("Введите правило подтипа: ") + val ruleText: String = readln() +print("Введите имя художника: ") + val illustrator: String = readln() + + val healAmount: Int = 60 + val cardNumber: Int = 105 + val totalInSet: Int = 106 + + println("======================================================================") + println("[$cardType] $cardName [$cardSubtype]") + println("----------------------------------------------------------------------") + println("Эффект: $effectText") + + println("Правило: $ruleText") + println("----------------------------------------------------------------------") + println("Илл. $illustrator $cardNumber/$totalInSet ★") + println("======================================================================") +} \ No newline at end of file diff --git a/works/lab-01/lesson1Exersice1/.gitignore b/works/lab-01/lesson1Exersice1/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/lesson1Exersice1/.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/works/lab-01/lesson1Exersice1/src/Main.kt b/works/lab-01/lesson1Exersice1/src/Main.kt new file mode 100644 index 0000000..eee93d5 --- /dev/null +++ b/works/lab-01/lesson1Exersice1/src/Main.kt @@ -0,0 +1,13 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + val trainerName:String = "Эш Кетчум" + val homeRegion:String = "Канто" + val badges:Int = 8 + val pokedexCount:Int = 150 + + println("=== БАЗА ДАННЫХ ТРЕНЕРОВ ===") + println("Тренер: $trainerName") + println("Родной регион: $homeRegion") + println("Значков: $badges | Покемонов в Покедексе: $pokedexCount") +} \ No newline at end of file diff --git a/works/lab-01/lesson2Exercise2/.gitignore b/works/lab-01/lesson2Exercise2/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/lesson2Exercise2/.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/works/lab-01/lesson2Exercise2/src/Main.kt b/works/lab-01/lesson2Exercise2/src/Main.kt new file mode 100644 index 0000000..ac62c76 --- /dev/null +++ b/works/lab-01/lesson2Exercise2/src/Main.kt @@ -0,0 +1,19 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + print("Введите имя инспектора: ") + val inspectorName: String = readln() + print("Введите имя тренера: ") + val trainerName: String = readln() + print("Введите стартового покемона: ") + val starterPokemon: String = readln() + print("Введите целевой стадион: ") + val targetGym: String = readln() + + println("\n" + "****************************************") + println("ЛИЦЕНЗИЯ ТРЕНЕРА ") + println("Инспектор: $inspectorName") + println("Тренер: $trainerName [Стартер: $starterPokemon]") + println("Следующая цель: $targetGym") + println("****************************************") +} diff --git a/works/lab-01/Новый текстовый документ (2).txt b/works/lab-01/Новый текстовый документ (2).txt deleted file mode 100644 index e69de29..0000000 diff --git a/works/lab-01/Новый текстовый документ.txt b/works/lab-01/Новый текстовый документ.txt deleted file mode 100644 index e69de29..0000000