{"id":26052610,"url":"https://github.com/letstayfoolish/javascript-dom-game","last_synced_at":"2025-03-08T06:41:18.812Z","repository":{"id":281065890,"uuid":"944065279","full_name":"letStayFoolish/javascript-dom-game","owner":"letStayFoolish","description":"Practicing basic DOM manipulations within Javascript while making pig-game","archived":false,"fork":false,"pushed_at":"2025-03-06T19:25:04.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T20:26:56.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/letStayFoolish.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":"2025-03-06T18:16:50.000Z","updated_at":"2025-03-06T19:25:07.000Z","dependencies_parsed_at":"2025-03-06T20:37:20.175Z","dependency_job_id":null,"html_url":"https://github.com/letStayFoolish/javascript-dom-game","commit_stats":null,"previous_names":["letstayfoolish/javascript-dom-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letStayFoolish%2Fjavascript-dom-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letStayFoolish%2Fjavascript-dom-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letStayFoolish%2Fjavascript-dom-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letStayFoolish%2Fjavascript-dom-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letStayFoolish","download_url":"https://codeload.github.com/letStayFoolish/javascript-dom-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242512383,"owners_count":20141390,"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":"2025-03-08T06:41:18.088Z","updated_at":"2025-03-08T06:41:18.807Z","avatar_url":"https://github.com/letStayFoolish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pig Game 🎲\n\nThis project is an implementation of the **Pig Game**, a simple and fun dice game for two players. The game is built with **TypeScript**, **HTML**, and **CSS**, featuring a responsive UI and dynamic game logic.\n\n\u003cimg src=\"screen-01.png\" alt=\"Screenshot of the game\" /\u003e\n\n## 📜 Rules of the Game\n\n1. The game is played by 2 players in turns.\n2. Each player's goal is to score **100 points** or more before the other player.\n3. On a player's turn:\n    - The player rolls a dice.\n    - The rolled number is added to their **current score**, unless a `1` is rolled.\n    - If the player rolls a `1`, their current score resets to `0` and it's the next player's turn.\n4. A player can choose to \"Hold\" their score:\n    - The current score is added to their **total score**.\n    - It becomes the next player's turn.\n5. The first player to reach **100 points** wins the game!\n\n---\n\n## 💻 Live Demo\n\nAdd a link here (if deployed or hosted): `[Live Demo](#)`\n\n---\n\n## 🛠 Features\n\n- **Dynamic Dice Rolls**: Random dice rolls with appropriate dice images.\n- **Turn Switching Logic**: Automatically switches turn upon rolling a `1` or choosing to \"Hold\".\n- **Simple \u0026 Intuitive UI**:\n    - Displays the current and total scores.\n    - Highlights the active player.\n- **Fully Responsive Design**: Works across devices.\n\n---\n\n### 📂 Project Structure\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletstayfoolish%2Fjavascript-dom-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletstayfoolish%2Fjavascript-dom-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletstayfoolish%2Fjavascript-dom-game/lists"}