Poker Hand Sort Coding Exercise in Kotlin
.idea
: Inellij IDEA Setting foldersrc
: Source Code in Kotlinout
: Folder structure that contains the project artifacts 'assembly files - JAR file'.iml
: Inellij IDEA module file
Simply, import the project root directory into Intellij IDEA and from the main menue:
Build
->Build Artifacts..
- ->
Build
- The JAR file will be generated and stored in
out/artifacts/PokerHandSorter
directory
- Now, you can use the terminal command line to run the file as instructured in the PDF file. To use that from the root directory:
cd out/artifacts/PokerHandSorter
cat poker-hands.txt | java -jar PokerHandSorter.jar
Navigate to the bin
directory and run the following command:
cat poker-hands.txt | java -jar PokerHandSorter.jar