Files
Kotlin_Learning_Puzzles/README.md
T

52 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Kotlin Learning Puzzles
这是一个 Kotlin 谜题仓库,适用于我的 Kotlin 入门教程。
![License](https://img.shields.io/github/license/sor2171/Kotlin_Puzzles_Template.svg)
![Kotlin](https://img.shields.io/badge/Kotlin-7F52FF?style=flat&logo=kotlin&logoColor=white)
## 小剧情
**你被捕了!**
严格来讲,是被外星人抓走了。瞬间,就来到了一个奇怪的白色房间里。
房间里有一套地球风格的桌椅,和一台地球水平的电脑。
随后,传来一些声音:
“听着,39号人类,接下来要检测你的智商,不合格就把你处理掉。赶紧去读 README!”
## 你的参考资料
[从 Kotlin 到 Kotlin Multiplatform](https://git.itouc.cn/ITStudio_OUC/From_Kotlin_to_Kotlin-Multiplatform)
## 如何解决迷题
迷题的核心是多个 `Test 类`,类定义中会指明你的编码位置,其余内容不能修改。(还有随机的小剧情)
就像这样的小区域,n 指区域编号,如果多于一个就会说明它的总数。
```kotlin
// write start n
// write end n
```
在编码时注意将文件顶部的 `@file:SkipCompile` 的参数改为 `true`,这也是判断共有几个迷题已经完成的方法。
写完之后点击 `@Test 函数`或 `Test 类`定义的左侧绿色箭头,随后等待编译,程序会自动判断是否通过。
绿色箭头,推荐点上边那个:
![start.png](assets/start.png)
测试通过会给出接下来的迷题位置,也可以在 [目录测试类](src/test/kotlin/io/github/sor2171/puzzles/Catalog.kt) 中查看所有迷题。
## 题目数量
- Alphabet:2
- Dive:1
- Hyper:0
- Extra:3