https://github.com/phimuemue/openschafkopf
Open Source Schafkopf
https://github.com/phimuemue/openschafkopf
game rust schafkopf
Last synced: about 1 year ago
JSON representation
Open Source Schafkopf
- Host: GitHub
- URL: https://github.com/phimuemue/openschafkopf
- Owner: phimuemue
- License: mit
- Created: 2017-08-13T10:02:12.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-05-16T08:33:15.000Z (about 1 year ago)
- Last Synced: 2025-05-16T09:38:22.551Z (about 1 year ago)
- Topics: game, rust, schafkopf
- Language: Rust
- Homepage:
- Size: 33.2 MB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenSchafkopf
This software allows to play and analyze the game [Schafkopf](https://en.wikipedia.org/wiki/Schafkopf). It supports the following variants (see [rulesets](https://github.com/phimuemue/openschafkopf/tree/main/rulesets) for examples):
* Rules: Rufspiel, Solo/Wenz/Farbwenz/Geier/Farbgeier (including Tout/Sie), Bettel, Ramsch
* Expensifiers: Schneider/Schwarz, Laufende, Stoss, Doppeln
* Misc: Kurze/lange Karte, Stock, Steigern
## Building
Requirements:
* [rust](https://www.rust-lang.org/en-US/install.html) stable
* [less](http://lesscss.org/) (tested with 3.9.0)
```
git clone https://github.com/phimuemue/openschafkopf.git
cd openschafkopf
cargo build --release
```
## Getting started
### Examples
The repository contains some [examples](https://github.com/phimuemue/openschafkopf/tree/main/examples) that show how the program can be used. They are meant to be run from the root folder.
### More details
```
./target/release/openschafkopf -h
schafkopf
USAGE:
openschafkopf [SUBCOMMAND]
OPTIONS:
-h, --help Print help information
SUBCOMMANDS:
cli Play in command line
websocket Play in the browser
analyze Analyze played games and spot suboptimal decisions
suggest-card Suggest a card to play given the game so far
hand-stats Statistics about hands that could be dealt.
parse Parse a game into a simple format
webext Backend of a web-extension suggesting a card for a given game state
help Print this message or the help of the given subcommand(s)
```