{ "info": { "author": "Alex Carlin", "author_email": "alxcarln@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# Cribbage for your command line \n\nImplementation 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. \n\n## Opponents \n\n- **Random**. This opponent plays a random legal move. \n- **Brute Force**. This opponent uses an enumerative strategy to determine the move with the greatest possible reward (points), and takes that move. \n- **Trained**. This opponent plays according to predictions made by a machine learning model. The predictions are based the outcomes of the games in the training data set (see the `train` directory). \n\n## Installation \n\nInstall using `pip`:\n\n```bash\npip install cribbage \n``` \n\nOr install from the source \n\n```bash\ngit clone git@github.com:dacarlin/cribbage.git\ncd cribbage \npython setup.py install \n```\n\n## How to use \n\nIf you want to play an easy game against the computer, you can run with the following. \n\n```bash \ncribbage human random --name1 Alex --name2 Amy \n```\n\nIf you would like to try playing one of the AI opponents (you likely will not win), you can run with the following. \n\n```bash \ncribbage human brute_force --name1 Alex --name2 Amy \n```\n\nIn either case, 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. \n\n## Help \n\nRun `cribbage -h` for more.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dacarlin/cribbage", "keywords": "card-games machine-learning", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cribbage", "package_url": "https://pypi.org/project/cribbage/", "platform": "", "project_url": "https://pypi.org/project/cribbage/", "project_urls": { "Homepage": "https://github.com/dacarlin/cribbage" }, "release_url": "https://pypi.org/project/cribbage/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Cribbage for your command line", "version": "1.0.1" }, "last_serial": 4021215, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cbfef44d994ba7118fc7640c3282ea37", "sha256": "bf509535e4ef164577eeb4e10d3df7157fe846f626b89334f827dc0c728dc041" }, "downloads": -1, "filename": "cribbage-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "cbfef44d994ba7118fc7640c3282ea37", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 15343, "upload_time": "2017-06-24T10:03:18", "url": "https://files.pythonhosted.org/packages/2a/ad/3e18443f09a4d40ad5af8f21cd4eef2aead07884d6ee9f33a3042f69a9bc/cribbage-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "c617e01a1218574ea002ab48398e263d", "sha256": "72be6a236ff8ad8783c7739e83982d9925b1fecd93eefe32fc8650d381dac1ab" }, "downloads": -1, "filename": "cribbage-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c617e01a1218574ea002ab48398e263d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8597, "upload_time": "2017-06-24T10:03:15", "url": "https://files.pythonhosted.org/packages/fb/5d/be4d6bbb102dd8a816f438e4caf82d4ab5bfc1865de48c6fa85ebde4c19c/cribbage-0.1.0-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "376bd0afc9bf09db9b8f31b36fc5e572", "sha256": "6a8e61f95a40f74cab4e4ed35ae5dfb7baa31ddcd2be55475d53f9796e833e4a" }, "downloads": -1, "filename": "cribbage-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "376bd0afc9bf09db9b8f31b36fc5e572", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9873, "upload_time": "2017-07-22T23:36:28", "url": "https://files.pythonhosted.org/packages/71/0b/4e42e2ce2c91551143fe1591677b76da313fb1c76586d68058705157a111/cribbage-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "aa4888159376d57606c9bb21a3167cc4", "sha256": "ca2811c77828bab5653c61a5d306bfd8d84f9fb97f863a5f133f266edadefc70" }, "downloads": -1, "filename": "cribbage-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "aa4888159376d57606c9bb21a3167cc4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10050, "upload_time": "2017-07-27T20:17:36", "url": "https://files.pythonhosted.org/packages/3c/ca/a977ddebabd59d5a96687cdc15018997d18ef5a3143740a7051459216c01/cribbage-0.1.2-py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "12522fd53ab58e51735abded7a056b6e", "sha256": "75ddd056d828907b2d16915173aaf03f556053400bd32f96a2b689e9cece53ec" }, "downloads": -1, "filename": "cribbage-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "12522fd53ab58e51735abded7a056b6e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10048, "upload_time": "2017-07-27T20:20:31", "url": "https://files.pythonhosted.org/packages/c7/ba/42e636ab7372832995dd62ee2a31208970b13c7783620b0b4a0f2cd5fa45/cribbage-0.1.3-py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8730963cb30243f028067db9563fc841", "sha256": "92cc602d6e14fbc0c8ab5913150a96f2df6a15430819dd60e358b3321d9b30f1" }, "downloads": -1, "filename": "cribbage-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8730963cb30243f028067db9563fc841", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9370, "upload_time": "2018-07-01T22:48:39", "url": "https://files.pythonhosted.org/packages/09/89/ea2780510e9e9b0e83571cc15c51f921751389c41039af70d23219860e87/cribbage-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "ec2e05c2ff99be68153edc03cca81d2f", "sha256": "9bbb7ff6b1328d013908c87bae486a0ad9fdf34f5895ad59b1a3517774e6232f" }, "downloads": -1, "filename": "cribbage-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ec2e05c2ff99be68153edc03cca81d2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9523, "upload_time": "2018-07-01T23:14:48", "url": "https://files.pythonhosted.org/packages/2e/c1/7f8cf1e978ca5e4344f05a9a8c2c89cb53535dd335341f28fb471d76a5fd/cribbage-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec2e05c2ff99be68153edc03cca81d2f", "sha256": "9bbb7ff6b1328d013908c87bae486a0ad9fdf34f5895ad59b1a3517774e6232f" }, "downloads": -1, "filename": "cribbage-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ec2e05c2ff99be68153edc03cca81d2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9523, "upload_time": "2018-07-01T23:14:48", "url": "https://files.pythonhosted.org/packages/2e/c1/7f8cf1e978ca5e4344f05a9a8c2c89cb53535dd335341f28fb471d76a5fd/cribbage-1.0.1.tar.gz" } ] }