Skip to content

Instantly share code, notes, and snippets.

View D0zee's full-sized avatar
😇

Nikolai Vladimirov D0zee

😇
View GitHub Profile
@D0zee
D0zee / GSoC.md
Created August 24, 2023 12:37
Google Summer of Code, Kotlin Foundation

Project Purposes

  • Add Kotlin DSL support to the Eclipse IDE.
  • Improve the user experience of using Eclipse for Java/Kotlin projects.
  • Save users from needing to use multiple IDEs during development.

What Has Been Done

  • Added: syntax highlighting, content assist for static Gradle properties, and diagnostic reports.
fun applyBordersFilter(picture: String): String {
val lines = picture.lines()
.map { it.trimIndent() }
.filter { it.isNotEmpty() }
val width = lines.maxOf { it.length } + 1
val pic = lines
.map { SEPARATOR + it + SEPARATOR.toString().repeat(width - it.length) }
.map { BORDER_SYMBOL + it + BORDER_SYMBOL }
.joinToString(System.lineSeparator()) + System.lineSeparator()
val newWidth = pic.lines().maxBy { it.length }.length
package hangman
fun isCorrectInput(userInput: String): Boolean {
return userInput.length == 1 && userInput[0].isLetter()
}
fun safeUserInput(): Char {
println("Please input your guess.")
var input = readln()