https://github.com/mateuszkubuszok/skat
Skat card game implementation in Clojure
https://github.com/mateuszkubuszok/skat
card-game clojure skat
Last synced: 3 months ago
JSON representation
Skat card game implementation in Clojure
- Host: GitHub
- URL: https://github.com/mateuszkubuszok/skat
- Owner: MateuszKubuszok
- License: other
- Created: 2015-02-17T13:16:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T16:21:29.000Z (about 10 years ago)
- Last Synced: 2025-01-21T18:51:56.821Z (5 months ago)
- Topics: card-game, clojure, skat
- Language: Clojure
- Homepage:
- Size: 434 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Skat game engine
[](https://travis-ci.org/MateuszKubuszok/Skat)
Engine intented to be able to completely simulate
[Skat card game](http://en.wikipedia.org/wiki/Skat_(card_game)),
as well as act in a bot-like manner.Compiled program uses CLI interface as to demonstrate library's abilities.
## Notes
Game implements official rules without any local additions (no *Ramsch* for
instance). It doesn't implement idea of giving deal up early or ability to
counter bidding as well.Naming in the game is in most part derrived from English Wikipedia. However,
there are some local names used. Cards suites use upper-silesian names:* **Kreuz** - for *Clubs*/*Acorns*/*Trefl*,
* **Grün** - for *Spades*/*Leaves*/*Pik*,
* **Herz** - for *Hearts*/*Hearts*/*Caro*,
* **Schell** - for *Diamonds*/*Bells*/*Kier*Similarly *Jack* is denoted with **W** and *Queen* with **D**. It can be changed
using i18n settings.## Installation
Download source from [GitHub](https://github.com/MateuszKubuszok/Skat)
and build using instructions below.## Usage
Building requires Leiningen installed.
To only build standalone jar run:
$ lein uberjar
It can be run with:
$ java -jar skat-0.5.0-standalone.jar
Alternatively build and run program at once:
$ lein run
On Windows (Cygwin) it might be required to run
cmd /c chcp 65001
before to make sure that UTF-8 characters will be displayed correctly.
On start you can pass option to configure apps behavior:
$ lein run -- --help
-l, --lang LANG :en Interface language
-r, --rounds ROUNDS 10 Number of rounds played
-d, --debug Debug mode on
-h, --help Display helpCurrently available translations are: `en` (English) and `pl` (Polish).
## License
Copyright © 2014-2015 Mateusz Kubuszok
Distributed under the Eclipse Public License version 1.0.