{"id":16294244,"url":"https://github.com/testica/bean-machine","last_synced_at":"2025-04-09T11:16:36.776Z","repository":{"id":79788500,"uuid":"46201841","full_name":"testica/bean-machine","owner":"testica","description":"Bean Machine simulator in python","archived":false,"fork":false,"pushed_at":"2015-11-19T20:21:44.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T05:16:52.800Z","etag":null,"topics":["bean-machine","probabilistic","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testica.png","metadata":{"files":{"readme":"README.md","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":"2015-11-15T02:58:36.000Z","updated_at":"2019-04-14T11:02:34.000Z","dependencies_parsed_at":"2023-03-09T16:41:57.329Z","dependency_job_id":null,"html_url":"https://github.com/testica/bean-machine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testica%2Fbean-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testica%2Fbean-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testica%2Fbean-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testica%2Fbean-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testica","download_url":"https://codeload.github.com/testica/bean-machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027414,"owners_count":21035594,"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":["bean-machine","probabilistic","python"],"created_at":"2024-10-10T20:14:39.783Z","updated_at":"2025-04-09T11:16:36.751Z","avatar_url":"https://github.com/testica.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bean Machine Simulator\n\nSimulation of Bean Machine built in pyhton.\n## Requisites\n* Python v 2.7.x\n\n## Usage\n* You have to specify number of levels with flag `-l` (required)\n* You have to specify number of balls with flag `-b` (required)\n* If you want get the result in percentage, use flag `-p` (optional).\n\n## Example\n\n20 levels and 500 balls are thrown\n\n`python bean_machine.py -l 20 -b 500`\n\noutput: `[0, 0, 0, 1, 1, 11, 9, 44, 46, 82, 79, 90, 56, 52, 21, 4, 4, 0, 0, 0, 0]`\n(output may be different)\n\n-------------------------------------------------------\n10 levels and 800 balls are thrown\n\n`python bean_machine.py -l 10 -b 800 -p`\n\noutput: `['0.25%', '0.88%', '3.62%', '10.13%', '20.13%', '24.88%', '22.25%', '14.12%', '2.63%', '1.0%', '0.13%']`\n(output may be different)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestica%2Fbean-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestica%2Fbean-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestica%2Fbean-machine/lists"}