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 hashes)

Uploaded Source

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

Uploaded Python 3

Supported by

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