{"id":17685831,"url":"https://github.com/sepandhaghighi/penney","last_synced_at":"2025-04-30T22:24:03.554Z","repository":{"id":41866657,"uuid":"248836311","full_name":"sepandhaghighi/penney","owner":"sepandhaghighi","description":"Penney's Game","archived":false,"fork":false,"pushed_at":"2024-04-23T01:31:13.000Z","size":1079,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T19:56:00.398Z","etag":null,"topics":["cli","cli-game","cli-games","console-application","console-game","fun","game","linux","macos","penney-game","penneygame","probability","python","python3","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sepandhaghighi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-20T19:29:47.000Z","updated_at":"2025-04-11T18:31:45.000Z","dependencies_parsed_at":"2023-11-19T21:25:39.893Z","dependency_job_id":"4f07da17-1ed8-48cd-9f94-5e51e1661214","html_url":"https://github.com/sepandhaghighi/penney","commit_stats":{"total_commits":186,"total_committers":3,"mean_commits":62.0,"dds":"0.30107526881720426","last_synced_commit":"3f2c2990aee117a24a6dc2975c376fa5fa2b19c3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fpenney","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fpenney/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fpenney/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fpenney/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sepandhaghighi","download_url":"https://codeload.github.com/sepandhaghighi/penney/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790437,"owners_count":21644218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-game","cli-games","console-application","console-game","fun","game","linux","macos","penney-game","penneygame","probability","python","python3","windows"],"created_at":"2024-10-24T10:29:11.625Z","updated_at":"2025-04-30T22:24:03.535Z","avatar_url":"https://github.com/sepandhaghighi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/sepandhaghighi/penney/raw/master/otherfiles/logo.png\" width=\"164px\" height=\"297px\"\u003e\n\u003ch1\u003ePenney's Game\u003c/h1\u003e\n\u003ca href=\"https://www.python.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/built%20with-Python3-green.svg\" alt=\"built with Python3\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/sepandhaghighi/penney\"\u003e\n  \u003cimg src=\"https://codecov.io/gh/sepandhaghighi/penney/branch/master/graph/badge.svg\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://badge.fury.io/py/penney\"\u003e\u003cimg src=\"https://badge.fury.io/py/penney.svg\" alt=\"PyPI version\" height=\"18\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n----------\n\n## Overview\t\n\nPenney's game, named after its inventor Walter Penney, is a binary (head/tail) sequence generating game between two or more players. Player A selects a sequence of heads and tails (of length 3 or larger), and shows this sequence to player B. Player B then selects another sequence of heads and tails of the same length. Subsequently, a fair coin is tossed until either player A's or player B's sequence appears as a consecutive subsequence of the coin toss outcomes. The player whose sequence appears first wins [[Wikipedia](https://en.wikipedia.org/wiki/Penney%27s_game)].\n\t\t\t\t\t\t\t\nHere we have a friendly clone of this game that I wrote during coronavirus quarantine days.\n\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003ePyPI Counter\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"http://pepy.tech/count/penney\"\u003e\u003cimg src=\"http://pepy.tech/badge/penney\"\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003eGithub Stars\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/sepandhaghighi/penney\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/sepandhaghighi/penney.svg?style=social\u0026label=Stars\"\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\n\n\u003ctable\u003e\n\t\u003ctr\u003e \n\t\t\u003ctd align=\"center\"\u003eBranch\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003emaster\u003c/td\u003e\t\n\t\t\u003ctd align=\"center\"\u003edev\u003c/td\u003e\t\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003eCI\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003cimg src=\"https://github.com/sepandhaghighi/penney/workflows/CI/badge.svg?branch=master\"\u003e\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003cimg src=\"https://github.com/sepandhaghighi/penney/workflows/CI/badge.svg?branch=dev\"\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\n\u003ctable\u003e\n\t\u003ctr\u003e \n\t\t\u003ctd align=\"center\"\u003eCode Quality\u003c/td\u003e\t\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://www.codefactor.io/repository/github/sepandhaghighi/penney\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/sepandhaghighi/penney/badge\" alt=\"CodeFactor\" /\u003e\u003c/a\u003e\u003c/td\u003e\t\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://www.codacy.com/manual/sepand-haghighi/penney?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=sepandhaghighi/penney\u0026amp;utm_campaign=Badge_Grade\"\u003e\u003cimg src=\"https://api.codacy.com/project/badge/Grade/d95056b079c844f587dd81914ed9d300\"/\u003e\u003c/a\u003e\u003c/td\u003e\t\n        \u003ctd align=\"center\"\u003e\u003ca href=\"https://codebeat.co/projects/github-com-sepandhaghighi-penney-dev\"\u003e\u003cimg alt=\"codebeat badge\" src=\"https://codebeat.co/badges/dbef50d3-b132-45fa-857a-701a52189460\" /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\t\n\n### Source Code\n- Download and install [Python3.x](https://www.python.org/downloads/) (\u003e=3.5)\n\t- [x] Select `Add to PATH` option\n\t- [x] Select `Install pip` option\n- Download [Version 0.4](https://github.com/sepandhaghighi/penney/archive/v0.4.zip) or [Latest Source ](https://github.com/sepandhaghighi/penney/archive/dev.zip)\n- Run `pip install -r requirements.txt` or `pip3 install -r requirements.txt` (Need root access)\n- Run `python3 setup.py install` or `python setup.py install` (Need root access)\t\t\t\t\n\n### PyPI\n\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/)     \n- Run `pip install penney` or `pip3 install penney` (Need root access)\n\n### Easy Install\n\n- Run `easy_install --upgrade penney` (Need root access)\n\n### Exe Version (Windows)\n- Download [Exe-Version 0.4](https://github.com/sepandhaghighi/penney/releases/download/v0.4/Penney-0.4.exe)\n- Run `Penney-0.4.exe`\n\n## How to Play\n\n- Open `CMD` (Windows) or `Terminal` (UNIX)\n- Run `python -m penney` or `python3 -m penney` (or run **executable** version)\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/sepandhaghighi/penney/raw/master/otherfiles/help.gif\"\u003e\n\u003cp\u003eGIF\u003c/p\u003e\n\n\u003c/div\u003e\n\n## Try Penney in Your Browser!\n\nYou can play Penney's game online in interactive Jupyter Notebooks via the Binder service! Try it out now! :\t\n\n\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sepandhaghighi/penney/master)\n\n- Open `Notebook.ipynb`\n\n## Contribution\t\t\t\n\nChanges and improvements are more than welcome! ❤️ Feel free to fork and open a pull request.\t\t\n\n\nPlease consider the following :\n\n\n1. Fork it!\n2. Create your feature branch (under `dev` branch)\n3. Add your functions/methods to proper files\n4. Pass all CI tests\n5. Update `CHANGELOG.md`\n\t- Describe changes under `[Unreleased]` section\n6. Submit a pull request into `dev` (please complete the pull request template)\n\n## Issues \u0026 Bug Reports\t\t\t\n\nJust fill an issue and describe it. I'll check it ASAP!\t\t\t\t\t\t\t\nor send an email to [sepand@pycm.ir](mailto:sepand@pycm.ir \"sepand@pycm.ir\"). \n\n* Please complete the issue template\n\n\n## Dependencies\n\n\u003ctable\u003e\n\t\u003ctr\u003e \n\t\t\u003ctd align=\"center\"\u003emaster\u003c/td\u003e\t\n\t\t\u003ctd align=\"center\"\u003edev\u003c/td\u003e\t\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://requires.io/github/sepandhaghighi/penney/requirements/?branch=master\"\u003e\u003cimg src=\"https://requires.io/github/sepandhaghighi/penney/requirements.svg?branch=master\" alt=\"Requirements Status\" /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://requires.io/github/sepandhaghighi/penney/requirements/?branch=dev\"\u003e\u003cimg src=\"https://requires.io/github/sepandhaghighi/penney/requirements.svg?branch=dev\" alt=\"Requirements Status\" /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n## References\t\t\t\n\n\u003cblockquote\u003e1- Penney, Walter. \"Problem 95: penney-ante.\" Journal of Recreational Mathematics 7 (1974): 321.\u003c/blockquote\u003e\n\n\u003cblockquote\u003e2- Zajkowski, Krzysztof. \"Penney's game between many players.\" arXiv preprint arXiv:1212.3973 (2012). \u003c/blockquote\u003e\n\n\u003cblockquote\u003e3- Guy, R. K., and John Horton Conway. Winning Ways for your Mathematical Plays. Academic Press, London, 1982. \u003c/blockquote\u003e\n\n\u003cblockquote\u003e4- Humble, Steve, and Yutaka Nishiyama. \"Humble-Nishiyama Randomness Game-A New Variation on Penney's Coin Game.\" (2010). \u003c/blockquote\u003e\t\n\n## Show Your Support\n\t\t\t\t\t\t\t\t\n\u003ch3\u003eStar This Repo\u003c/h3\u003e\t\t\t\t\t\n\nGive a ⭐️ if this project helped you!\n\n\u003ch3\u003eDonate to Our Project\u003c/h3\u003e\t\n\n\u003ch4\u003eBitcoin\u003c/h4\u003e\n1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy\n\u003ch4\u003eEthereum\u003c/h4\u003e\n0xcD4Db18B6664A9662123D4307B074aE968535388\n\u003ch4\u003eLitecoin\u003c/h4\u003e\nLdnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ\n\u003ch4\u003eDoge\u003c/h4\u003e\nDDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh\n\u003ch4\u003eTron\u003c/h4\u003e\nTCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7\n\u003ch4\u003eRipple\u003c/h4\u003e\nrN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq\n\u003ch4\u003eBinance Coin\u003c/h4\u003e\nbnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef\n\u003ch4\u003eTether\u003c/h4\u003e\n0xcD4Db18B6664A9662123D4307B074aE968535388\n\u003ch4\u003eDash\u003c/h4\u003e\nXd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s\n\u003ch4\u003eStellar\u003c/h4\u003e\t\t\n\nGALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL\t\t\t\t\t\t\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Fpenney","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepandhaghighi%2Fpenney","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Fpenney/lists"}