Cribbage for your command line
Project description
# Cribbage for your command line
Implementation of [cribbage](https://www.pagat.com/adders/crib6.html) for two players. Text-based GUI for use on your command line (so you can appear to be working). Several kinds of opponents.
## AI Opponents
Random: plays a random legal move
Enumerative: enumerative (brute force) strategy
Trained: trained by playing 100,000 games
## Installation
Install using pip:
`bash pip install cribbage `
Or install from the source
`bash git clone git@github.com:dacarlin/cribbage.git cd cribbage python setup.py install `
## How to use
If you want to play an easy game, you can run with
`bash cribbage human random --name1 Alex --name2 Amy `
If you would like to try playing the AI (you likely will not win), you can run with
`bash cribbage human enumerative --name1 Alex --name2 Amy `
In either, replace “Alex” with your name and “Amy” for the name you wish to call the opponent, or omit them if you don’t care about naming the players. Run cribbage -h for more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file cribbage-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: cribbage-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca2811c77828bab5653c61a5d306bfd8d84f9fb97f863a5f133f266edadefc70 |
|
MD5 | aa4888159376d57606c9bb21a3167cc4 |
|
BLAKE2b-256 | 3ccaa977ddebabd59d5a96687cdc15018997d18ef5a3143740a7051459216c01 |