Skip to main content

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

  • Rando: opponent that plays a random legal move

  • Amy: AI that uses an enumerative strategy

  • Andrew: AI that has been trained by playing 100,000 games

## How to use

For regular use, you can run with

`bash python main.py human ai --player1-name Alex --player2-name Amy `

where you can replace “Alex” with your name and “Amy” for the name you wish to call the opponent. See python main.py -h for more.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

cribbage-0.1.0-py3.6.egg (15.3 kB view details)

Uploaded Egg

cribbage-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file cribbage-0.1.0-py3.6.egg.

File metadata

File hashes

Hashes for cribbage-0.1.0-py3.6.egg
Algorithm Hash digest
SHA256 bf509535e4ef164577eeb4e10d3df7157fe846f626b89334f827dc0c728dc041
MD5 cbfef44d994ba7118fc7640c3282ea37
BLAKE2b-256 2aad3e18443f09a4d40ad5af8f21cd4eef2aead07884d6ee9f33a3042f69a9bc

See more details on using hashes here.

File details

Details for the file cribbage-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cribbage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72be6a236ff8ad8783c7739e83982d9925b1fecd93eefe32fc8650d381dac1ab
MD5 c617e01a1218574ea002ab48398e263d
BLAKE2b-256 fb5dbe4d6bbb102dd8a816f438e4caf82d4ab5bfc1865de48c6fa85ebde4c19c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page