{ "info": { "author": "Nitin Shinde", "author_email": "nitinkshinde@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Bulls and Cows (also known as Cows and Bulls or Pigs and Bulls or Bulls and Cleots) is an old code-breaking mind or paper and pencil game for two or more players, predating the similar commercially marketed board game Mastermind.\r\nThe numerical version of the game is usually played with 4 digits, but can also be played with 3 or any other number of digits.\r\n\r\nOn a sheet of paper, the players each write a 4-digit secret number. The digits must be all different. Then, in turn, the players try to guess their opponent's number who gives the number of matches. If the matching digits are in their right positions, they are \"bulls\", if in different positions, they are \"cows\". Example:\r\n\r\nSecret number: 4271\r\nOpponent's try: 1234\r\nAnswer: 1 bull and 2 cows. (The bull is \"2\", the cows are \"4\" and \"1\".)\r\nThe first one to reveal the other's secret number wins the game. As the \"first one to try\" has a logical advantage, on every game the \"first\" player changes. In some places, the winner of the previous game will play \"second\". Sometimes, if the \"first\" player finds the number, the \"second\" has one more move to make and if he also succeeds, the result is even.\r\n\r\nThe game may also be played by two teams of 2\u20133 players. The players of every team discuss before making their move, much like in chess.\r\n\r\nA computer program moo, written in 1970 by J. M. Grochow at MIT in the PL/I computer language for the Multics operating system, was amongst the first\r\n Bulls and Cows computer implementations, inspired by a similar program written by Frank King in 1968 and running on the Cambridge University mainframe.\r\n Because the game has simple rules, while it is difficult and entertaining, there are many computer variants; it is often included in telephones and PDAs.\r\n\r\nIt is proven that any number could be solved using up to seven turns. Minimal average game length is 26274/5040=5.2131 turns\r\n\r\nBelow Class can be used to create your own game.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.linkedin.com/profile/view?id=51284763&trk=nav_responsive_tab_profile", "keywords": "cow bull cowbull cows&bulls cows and bulls cows and bulls", "license": "UNKNOWN", "maintainer": "Nitin Shinde", "maintainer_email": "nitinkshinde@gmail.com", "name": "cowbull", "package_url": "https://pypi.org/project/cowbull/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cowbull/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://www.linkedin.com/profile/view?id=51284763&trk=nav_responsive_tab_profile" }, "release_url": "https://pypi.org/project/cowbull/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Bulls and Cows numerical version class.", "version": "1.0.0" }, "last_serial": 1528919, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9e7a8846c059b7f7e7562c6251aacc89", "sha256": "b015615c5fd76e982ec71a30c17dad9abe3c31f37428eef9218d5cd063c27a20" }, "downloads": -1, "filename": "cowbull-1.0.0.zip", "has_sig": false, "md5_digest": "9e7a8846c059b7f7e7562c6251aacc89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2650, "upload_time": "2015-04-30T14:55:48", "url": "https://files.pythonhosted.org/packages/4a/5a/ea909ae7fd04b8fb3b64c98b4e4ef0c89b58f57b818c2bade152a2b9c264/cowbull-1.0.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e7a8846c059b7f7e7562c6251aacc89", "sha256": "b015615c5fd76e982ec71a30c17dad9abe3c31f37428eef9218d5cd063c27a20" }, "downloads": -1, "filename": "cowbull-1.0.0.zip", "has_sig": false, "md5_digest": "9e7a8846c059b7f7e7562c6251aacc89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2650, "upload_time": "2015-04-30T14:55:48", "url": "https://files.pythonhosted.org/packages/4a/5a/ea909ae7fd04b8fb3b64c98b4e4ef0c89b58f57b818c2bade152a2b9c264/cowbull-1.0.0.zip" } ] }