{"id":20291503,"url":"https://github.com/tiuphun/dice","last_synced_at":"2025-10-17T03:07:09.440Z","repository":{"id":177172266,"uuid":"660018036","full_name":"tiuphun/dice","owner":"tiuphun","description":"Another *burdensome* homework from OOP Theory class.","archived":false,"fork":false,"pushed_at":"2023-07-03T07:36:06.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T04:44:47.954Z","etag":null,"topics":["oops-in-java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/tiuphun.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-29T04:13:15.000Z","updated_at":"2023-07-02T14:10:33.000Z","dependencies_parsed_at":"2025-01-14T09:12:13.533Z","dependency_job_id":"8818ac87-cb2d-49ea-99ef-c1f41f2dff84","html_url":"https://github.com/tiuphun/dice","commit_stats":null,"previous_names":["tiuphun/dice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tiuphun/dice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiuphun%2Fdice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiuphun%2Fdice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiuphun%2Fdice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiuphun%2Fdice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiuphun","download_url":"https://codeload.github.com/tiuphun/dice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiuphun%2Fdice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279275299,"owners_count":26138567,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["oops-in-java"],"created_at":"2024-11-14T15:12:36.719Z","updated_at":"2025-10-17T03:07:09.406Z","avatar_url":"https://github.com/tiuphun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 21 Dice Game 🎲\nAnother *burdensome* homework from OOP Theory class (the sigh is real). Hopefully I'll learn something useful.\n\n## 📄 Description\nDesign a game as following:\n* Number of players: 4 (always). If \u003c 4 players are playing, the program will automatically added a number of players so that there are 4 of them.\n* There are 4 dices. Each dice has the probability of a face of 20%, and the remaining outcomes are 16%: For dice number 1-4, the face with 1-4 dots is the one with 20% possibility.\n* Each player has:\n  * Name\n  * Total accumulated points\n  * *For virtual players*: Have different ways of expressing game over (say something nice, leave game, silently do something bad...)\n* There is 1 game master who:\n  * Decide who will go next;\n  * Calculate the points for players:\n    * If `previous turn's accumulated point` + `this turn's point` = 21: Winner. End game.\n    * If `previous turn's accumulated point` + `this turn's point` \u003e 21: Point = 0;\n    * Otherwise: add points as normal\n  * Announce the winner. Virtual players express their disappointment differently.\n* At each player's turn, they will receive at random a dice and roll it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiuphun%2Fdice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiuphun%2Fdice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiuphun%2Fdice/lists"}