A simple card game written in Scala using ZIO.
Harfstone is a word game on Hearthstone, a deck building card game, where "harf" means "letter" in Turkish, hence the gross simplification of the complex game Hearthstone. Cards are identified by their mana costs (0-8) and the damage they do is equal to their mana cost.
-
harfstone-core: Defines the core logic of game Harfstone which can be used with any fronted.A later addition might be to use ScalaJS to create a HTML/canvasbased front-end and make it run in browsers. -
harfstone-console: Defines the console user interface, interactions and game sequence based on the logic defined inharfstone-core.
To run console game:
sbt harfstone-console/runTo run tests with coverage:
sbt clean coverage test
sbt coverageReportharfstone-console uses sbt-native-image plugin to create native images.
sbt harfstone-console/nativeImageRun:
./harfstone-console/target/native-image/harfstone-console