{"id":21429687,"url":"https://github.com/palashhawee/pig-game","last_synced_at":"2025-07-20T00:32:10.626Z","repository":{"id":166726556,"uuid":"611643210","full_name":"PalashHawee/pig-game","owner":"PalashHawee","description":"Implemented Pig Game Algorithms","archived":false,"fork":false,"pushed_at":"2023-03-09T09:34:09.000Z","size":399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T21:48:40.069Z","etag":null,"topics":["algorithms","javascript","pig-game","project"],"latest_commit_sha":null,"homepage":"https://pig-game-hawee.netlify.app/","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/PalashHawee.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":"2023-03-09T08:48:12.000Z","updated_at":"2023-03-09T09:16:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2fb36eb-dfa9-4ca2-9e43-041b508fef9c","html_url":"https://github.com/PalashHawee/pig-game","commit_stats":null,"previous_names":["palashhawee/pig-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PalashHawee/pig-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PalashHawee%2Fpig-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PalashHawee%2Fpig-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PalashHawee%2Fpig-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PalashHawee%2Fpig-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PalashHawee","download_url":"https://codeload.github.com/PalashHawee/pig-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PalashHawee%2Fpig-game/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048520,"owners_count":23868739,"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":["algorithms","javascript","pig-game","project"],"created_at":"2024-11-22T22:18:51.613Z","updated_at":"2025-07-20T00:32:10.598Z","avatar_url":"https://github.com/PalashHawee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PIG GAME\n\n\n\n\n\n## Demo\n\nhttps://pig-game-hawee.netlify.app/\n\n\n## Algorithms\n### step 1:\n #### Roll the dice:\n  The current player has to roll the dice and then a random number will be generated. If current player gets any number other than 1 on the dice then that number will be added to the current score (initially the current score will be 0) and then the new score will be displayed under Current Score section.  Note: If the current player gets 1 on the dice then the players will be switched i.e. the current player will become in-active and vice-versa.\n### Step 2:\n#### Hold: \nIf the current player clicks on HOLD, then the Current Score will be added to the Total Score. When the active player clicks the Hold button then the total score is evaluated. If the Total Score \u003e= 50 then the current player wins else the players are switched.\n### Step 3:\n#### Reset: \nAll the scores are set to 0 and Player 1 is set as the starting player (current player).\n\n\n\n## Flow Chart\n\n![Flow Chart](https://github.com/PalashHawee/pig-game/blob/main/pig-game-flowchart.png)\n\n## Making of game\nBeing a game rendered by the web browser, it is built by the help of HTML, CSS (for the Front-end) and JavaScript (for the Back-end). The main logic of the game lies in the JS file whereas the appearance and the User Interface is rendered by HTML and CSS.\n## Authors\n\n- [@palashhawee](https://github.com/PalashHawee)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashhawee%2Fpig-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalashhawee%2Fpig-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashhawee%2Fpig-game/lists"}