mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-05 09:39:32 -08:00
13 lines
579 B
Markdown
13 lines
579 B
Markdown
Original source downloaded [from Vintage Basic](http://www.vintage-basic.net/games.html)
|
|
|
|
Conversion to [Kotlin](https://kotlinlang.org/), structure inspired from [the Java port](https://github.com/coding-horror/basic-computer-games/blob/main/32_Diamond/java/Diamond.java).
|
|
|
|
### How to Run
|
|
1. Install [kotlin command line](https://kotlinlang.org/docs/command-line.html) compiler from JetBrains.
|
|
2. Compile with `kotlinc diamond.kt -include-runtime -d diamond.jar`
|
|
3. Run with `java -jar diamond.jar`
|
|
|
|
### Changes from Original
|
|
This version validates that user input is correct.
|
|
|