项目作者: salbat

项目描述 :
Poker Hand Sort Coding Exercise in Kotlin
高级语言: Kotlin
项目地址: git://github.com/salbat/PokerHandSort.git
创建时间: 2018-03-05T11:18:10Z
项目社区:https://github.com/salbat/PokerHandSort

开源协议:

下载


PokerHandSort

Poker Hand Sort Coding Exercise in Kotlin

Directory Structure

  • .idea: Inellij IDEA Setting folder
  • src: Source Code in Kotlin
  • out: Folder structure that contains the project artifacts ‘assembly files - JAR file’
  • .iml: Inellij IDEA module file

How to build and use the code?

Simply, import the project root directory into Intellij IDEA and from the main menue:

  • Build -> Build Artifacts..

Alt text

  • -> Build

Alt text

  • The JAR file will be generated and stored in out/artifacts/PokerHandSorter directory

    Alt text

  • 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

Alt text

The easiest way to run and check the results!

Navigate to the bin directory and run the following command:

cat poker-hands.txt | java -jar PokerHandSorter.jar