Package: penney
Penney's GameOverviewPenney'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].Here we have a friendly clone of this game that I wrote during coronavirus quarantine days.PyPI CounterGithub StarsBranchmasterdevCICode QualityInstallationSource CodeDownload and installPython3.x(>=3.5)SelectAdd to PATHoptionSelectInstall pipoptionDownloadVersion 0.4orLatest SourceRunpip install -r requirements.txtorpip3 install -r requirements.txt(Need root access)Runpython3 setup.py installorpython setup.py install(Need root access)PyPICheckPython Packaging User GuideRunpip install penneyorpip3 install penney(Need root access)Easy InstallRuneasy_install --upgrade penney(Need root access)Exe Version (Windows)DownloadExe-Version 0.4RunPenney-0.4.exeHow to PlayOpenCMD(Windows) orTerminal(UNIX)Runpython -m penneyorpython3 -m penney(or runexecutableversion)GIFTry Penney in Your Browser!You can play Penney's game online in interactive Jupyter Notebooks via the Binder service! Try it out now! :OpenNotebook.ipynbContributionChanges and improvements are more than welcome! ❤️ Feel free to fork and open a pull request.Please consider the following :Fork it!Create your feature branch (underdevbranch)Add your functions/methods to proper filesPass all CI testsUpdateCHANGELOG.mdDescribe changes under[Unreleased]sectionSubmit a pull request intodev(please complete the pull request template)Issues & Bug ReportsJust fill an issue and describe it. I'll check it ASAP!
or send an email tosepand@pycm.ir.Please complete the issue templateDependenciesmasterdevReferences1- Penney, Walter. "Problem 95: penney-ante." Journal of Recreational Mathematics 7 (1974): 321.2- Zajkowski, Krzysztof. "Penney's game between many players." arXiv preprint arXiv:1212.3973 (2012).3- Guy, R. K., and John Horton Conway. Winning Ways for your Mathematical Plays. Academic Press, London, 1982.4- Humble, Steve, and Yutaka Nishiyama. "Humble-Nishiyama Randomness Game-A New Variation on Penney's Coin Game." (2010).Show Your SupportStar This RepoGive a ⭐️ if this project helped you!Donate to Our ProjectBitcoin1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum0xcD4Db18B6664A9662123D4307B074aE968535388LitecoinLdnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDogeDDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTronTCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7RipplerN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coinbnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether0xcD4Db18B6664A9662123D4307B074aE968535388DashXd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellarGALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelogand this project adheres toSemantic Versioning.Unreleased0.4- 2021-05-19Addedrequirements-splitter.pyprint_seqfunctionChangedTest system modifiedgamefunction modifiedMenu optimized0.3- 2020-04-16ChangedREADME.mdmodifiedMinor issues fixedprint_resultfunction tie condition bug fixed0.2- 2020-04-08Addeddetfunctionprob_calcfunctionprint_probfunctionC_calcfunctionNotebook.ipynbfilebuild_unix.shfileGithub actionChangedREADME.mdmodifiedversion_check.pyupdated0.1- 2020-03-21AddedPlayer modeComputer modeExe versionTest system