{"id":17787692,"url":"https://github.com/atwayne/pool_fee","last_synced_at":"2025-04-02T00:21:01.850Z","repository":{"id":74600477,"uuid":"46994739","full_name":"atwayne/pool_fee","owner":"atwayne","description":"library to calculate how to split the bill of a pool game","archived":false,"fork":false,"pushed_at":"2015-11-29T13:03:39.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T15:44:53.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/atwayne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-27T18:40:33.000Z","updated_at":"2015-11-27T18:45:34.000Z","dependencies_parsed_at":"2023-03-06T00:30:41.041Z","dependency_job_id":null,"html_url":"https://github.com/atwayne/pool_fee","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/atwayne%2Fpool_fee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atwayne%2Fpool_fee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atwayne%2Fpool_fee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atwayne%2Fpool_fee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atwayne","download_url":"https://codeload.github.com/atwayne/pool_fee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246731080,"owners_count":20824501,"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":[],"created_at":"2024-10-27T10:12:31.572Z","updated_at":"2025-04-02T00:21:01.813Z","avatar_url":"https://github.com/atwayne.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pool_fee\n\u003e library to calculate how to split the bill of a pool game\n\nTo Start, create a fork of the example timeline `timeline_20151127.js`, run\n\n```\nnode timeline_20151127.js\n```\n\n## Features:\n- Input when did each table open and close, along with how much it cost per minute\n\n  ```\n    // create a table which costs $35 per hour\n    var table = new Table('table_alias', 35 / 60);\n    // open this table at 19:00\n    table.JoinPool(pool, new Date('2015-11-27 19:00'));\n    // close this table at 21:00\n    table.LeftPool(pool, new Date('2015-11-27 21:00'))\n  ```\n\n- Input when did everyone arrive and leave\n\n  ```\n    // create player with a alias and an optional discount\n    var tom = new Player('tom');\n\n    // join pool at 19:00\n    tom.JoinPool(pool,new Date('2015-11-27 19:00'));\n\n    // left pool at 21:00\n    tom.LeftPool(pool,new Date('2015-11-27 21:00'));\n  ```\n\n- Optional, place a discount on anyone\n\n  ```\n    // now jerry weights 0.8 while others weights 1\n    var jerry = new Player('jerry',0.8);\n  ```\n\n- Optional, charge extra money on anyone\n\n  ```\n    // tom ate something worth $23, which should not be paid by everyone\n    tom.Eat(23);\n  ```\n\n\n## TODO:\n\n- Create Android App and iOS App for that\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatwayne%2Fpool_fee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatwayne%2Fpool_fee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatwayne%2Fpool_fee/lists"}