{"id":15781998,"url":"https://github.com/ghulamghousdev/pig-dice-game","last_synced_at":"2026-05-02T19:35:26.359Z","repository":{"id":124979524,"uuid":"252432440","full_name":"ghulamghousdev/Pig-Dice-Game","owner":"ghulamghousdev","description":"🎲🏆🎲 A simple dice game with two players. Each player repeatedly rolls a die until either a 1 is rolled or the player decides to \"hold\". The player who first scores 100 or more points wins. https://ghulamghousdev.github.io/Pig-Dice-Game","archived":false,"fork":false,"pushed_at":"2020-04-02T14:03:51.000Z","size":1542,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T19:24:52.149Z","etag":null,"topics":["css","games","html","javascript","javascript-game","pig-dice","pig-game","projects"],"latest_commit_sha":null,"homepage":"","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/ghulamghousdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T11:09:39.000Z","updated_at":"2020-06-13T20:02:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"33e86b73-82c8-4599-b954-8197f65d3916","html_url":"https://github.com/ghulamghousdev/Pig-Dice-Game","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"50c1645cd1ad3e455b41763569b69ebf8509bf4e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghulamghousdev%2FPig-Dice-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghulamghousdev%2FPig-Dice-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghulamghousdev%2FPig-Dice-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghulamghousdev%2FPig-Dice-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghulamghousdev","download_url":"https://codeload.github.com/ghulamghousdev/Pig-Dice-Game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498758,"owners_count":20787378,"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":["css","games","html","javascript","javascript-game","pig-dice","pig-game","projects"],"created_at":"2024-10-04T19:02:22.120Z","updated_at":"2026-05-02T19:35:26.327Z","avatar_url":"https://github.com/ghulamghousdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pig Dice Game\n#### A simple dice game with two players. Each player repeatedly rolls a die until either a 1 is rolled or the player decides to \"hold\". The player who first scores 100 or more points wins. \n\n## Description\nThis is a simple dice game where two players have the chance to roll the dice to try and achieve a score of 100. Each player repeatedly rolls a die until either a 1 is rolled or the player decides to \"hold\". \n\nThe rules of the game are:\n* When a player rolls a 1, their  total score reverts to 0 and it becomes the next player's turn.\n* When the player rolls a 2 - 6, the score is added to their turn total and they can continue to play\n* When the player chooses to \"hold\", their turn total is added to their total score, and it becomes the next player's turn.\n* The player who first scores 100 or more points wins.\n\n## Specifications\n1. It can display the inputted name of the players when 'Play' is clicked as\n\n         Player1\n         Player2\n \n 2. Player1 can roll the dice and the result displayed as their turn score.\n * Input:\n \n        'Roll' button is clicked\n        Dice Score: 3 \n * Output:\n  \n         Turn Score: 6\n  \n3. Player1 can hold the dice and their turn total score is added to their total score. Player2 then has the chance to play.\n * Input: \n \n         'Hold' button is clicked.\n * Output:\n  \n          Turn Score: 3\n          Total Score: 9\n          \n4. Player2 can roll the dice and the result displayed as their turn score.\n * Input:\n \n        'Roll' button is clicked\n        Dice Score: 2\n * Output:\n  \n         Turn Score: 5\n  \n5. Player2 can hold the dice and their turn score is added to their total score. Player1 then has the chance to play.\n * Input: \n  \n          'Hold' button is clicked.\n * Output:\n  \n          Turn Score: 4\n          Total Score: 9        \n          \n6. If a player's dice score is a 1, their turn score will be reduced to 0.\n  * Input:\n      \n            'Roll' button is clicked\n            Dice Score: 1\n   * Output: \n            \n            Previous Turn Score: 30\n            New Turn Score: 0\n    \n\n          \n## Setup/Installation\nTo view the website, click [Pig Dice Game](https://ghulamghousdev.github.io/Pig-Dice-Game) or copy (https://ghulamghousdev.github.io/Pig-Dice-Game) to your browser and load it.\n\n## Known Bugs\nNo known bugs.\n\n## Technologies Used\n* HTML\n* CSS\n* JAVASCRIPT\n\n## Licence\nMIT \u0026copy;2020 [Ghulam Ghous](https://github.com/ghulamghousdev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghulamghousdev%2Fpig-dice-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghulamghousdev%2Fpig-dice-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghulamghousdev%2Fpig-dice-game/lists"}