{"id":17328247,"url":"https://github.com/whtsky/kotlin_koans","last_synced_at":"2025-03-27T05:24:41.852Z","repository":{"id":142156166,"uuid":"96891774","full_name":"whtsky/kotlin_koans","owner":"whtsky","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-28T11:59:52.000Z","size":6630,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T10:28:23.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whtsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-11T12:41:55.000Z","updated_at":"2017-09-18T14:14:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"0aa9de73-1eef-4211-aaf7-99df64914bab","html_url":"https://github.com/whtsky/kotlin_koans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsky%2Fkotlin_koans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsky%2Fkotlin_koans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsky%2Fkotlin_koans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsky%2Fkotlin_koans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whtsky","download_url":"https://codeload.github.com/whtsky/kotlin_koans/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245787477,"owners_count":20671932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T14:23:09.223Z","updated_at":"2025-03-27T05:24:41.832Z","avatar_url":"https://github.com/whtsky.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kotlin Koans\n===========\n\nKotlin Koans Workshop is a series of exercises to get you familiar with the Kotlin Syntax. \nEach exercise is created as a failing unit test and your job is to make it pass. \n\n#### How to build and run tests\n\n##### Working with the project using Intellij IDEA or Android Studio:\n\n1. Import the project as Gradle project.\n2. To build the project and run tests use `test` task on Gradle panel. \n\nHere https://www.jetbrains.com/help/idea/gradle.html you can read how to work with Gradle projects in IntelliJ IDEA.\n\n##### Working with the commandline\n\nYou can also build the project and run all tests in the terminal:\n```\n./gradlew test\n```\nBut since running all the tests tend to take longer and the output can be\ncluttered, it's more ideal to run selected tests only:\n```\n$ ./gradlew test --tests i_*          # run tests in part 1\n$ ./gradlew test --tests ii_*         # run tests in part 2\n$ ./gradlew test --tests ii_*22*      # run test number 22 in part 2\n```\n\n\n#### How to check yourself\n\nThe repository has two branches, `master` which contains the exercises for you to do and `resolutions` which contains the resolved exercises. \nMake sure you don’t cheat!\n\n\n#### How the tasks are organized\n \nYou have 42 tasks to do. \nEach task lives in its own function: from `task0` to `task41`.\nFor each task, there is an associated unit test that checks your solution. \n\nIndividual tasks generally require you to change the function `taskX` by completely replacing the body of the function.\nYour goal is to solve the problem and allow the associated unit test to pass. \nIf you run the unit test for a task that is not correct, the unit test results will be displayed. \nIf you have not yet made any changes to a task, the exception will be thrown and the task's TODO message will be displayed. \n\nIn the first example, this means replacing the code\n\n```kotlin\nfun task0(): String {\n    return todoTask0()\n}\n```\n\nwith the correct, meaningful code in order to solve the problem and allow the associated unit test to pass, such as:\n\n```kotlin\nfun task0() = \"OK\"\n```\n\nThe `resolutions` branch contains all the solutions.\nIt's a good idea to check the proposed solution after completing each task.\nOpen the file with your solution, call the `Compare with branch...` action and choose the `resolutions` branch.   \nYou can find [here](https://www.jetbrains.com/help/idea/navigating-to-action.html) how to call an action.\n\n\n#### Other ways to solve Koans\n\nYou can solve the similar tasks using Educational Plugin or in the browser:\n\n- Educational Plugin https://blog.jetbrains.com/kotlin/2016/03/kotlin-educational-plugin\n- online version of koans http://try.kotl.in\n\nThe koans tasks for web-demo and educational plugin can be found here: https://github.com/Kotlin/kotlin-koans-edu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtsky%2Fkotlin_koans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhtsky%2Fkotlin_koans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtsky%2Fkotlin_koans/lists"}