{"id":20425417,"url":"https://github.com/catseye/flip","last_synced_at":"2025-05-08T16:32:05.621Z","repository":{"id":3716894,"uuid":"4789128","full_name":"catseye/Flip","owner":"catseye","description":"An implementation in Erlang of the venerable and ancient coin-tossing game of Flip","archived":false,"fork":false,"pushed_at":"2014-08-19T13:31:06.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-12T22:20:40.451Z","etag":null,"topics":["classic-game","computer-game","machine-learning","retrogaming"],"latest_commit_sha":null,"homepage":"http://catseye.tc/node/Flip","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catseye.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-26T00:13:18.000Z","updated_at":"2018-12-12T17:49:42.000Z","dependencies_parsed_at":"2022-09-16T02:41:35.409Z","dependency_job_id":null,"html_url":"https://github.com/catseye/Flip","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catseye%2FFlip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catseye%2FFlip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catseye%2FFlip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catseye%2FFlip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catseye","download_url":"https://codeload.github.com/catseye/Flip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224742403,"owners_count":17362232,"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":["classic-game","computer-game","machine-learning","retrogaming"],"created_at":"2024-11-15T07:13:12.957Z","updated_at":"2024-11-15T07:13:13.635Z","avatar_url":"https://github.com/catseye.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flip\n====\n\nThis is Cat's Eye Technologies' distribution of the game of _Flip_.\n\nFlip is a very simple computer game by John S. James which first appeared\nin the March/April 1977 edition of _Creative Computing_.\n\nIn the game, the computer flips a virtual coin 50 times, and the object is\nfor you to guess whether the coin will come up heads or tails each time.\n\nWhat makes it interesting is that the coin is not fair.  The computer tries\nto find patterns in your guesses, and exploit them by biasing the coin toss\naway from what it thinks you are likely to guess next.\n\nThis is interesting because humans are actually not all that good at moving\nrandomly; we tend to and fall into patterns.  So a pigeon, not thinking\nabout the game and pecking haphazardly at \"heads\" and \"tails\" buttons, might\nactually be a better Flip player than you or me.\n\nYou can think of the program as creating a Markov chain to model your\nguesses, and updating it each time you make a guess, based on your last few\nguesses.  Although, it's not quite that straightforward -- there is some\nrandomness thrown in, too.\n\nThis version of the game is written in Erlang, based largely on the version\nwritten in BASIC by Steve North appearing in _More BASIC Computer Games_,\nEd. David H. Ahl (ISBN 0-89480-137-6).  Note that in this implementation,\nheads and tails are called `Y` and `N`.\n\nRunning\n-------\n\nTo build the `flip` module, run the script `make.sh` from the root\ndirectory of the distribution.\n\nAfter the module has been built, the game can be played by running the\nscript `flip` in the `bin` directory.  This script can be run from anywhere;\nit knows to locate the module in the distribution directory.\n\nPlaying the Game\n----------------\n\nEach time the computer prompts you with a question mark, type 'Y' to\nguess that the flip was heads, or 'N' to guess that the flip was tails.\nA correct guess will be signalled by an asterisk printed before the\nnext question mark.  At the end of the run (by default 50 flips,) your\nscore will be printed.\n\nLicense\n-------\n\nThis work is in the public domain.  See the file `UNLICENSE` for more\ninformation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatseye%2Fflip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatseye%2Fflip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatseye%2Fflip/lists"}