{"id":23346744,"url":"https://github.com/filonenkodima/piggame","last_synced_at":"2026-04-13T21:01:48.062Z","repository":{"id":218808607,"uuid":"747415095","full_name":"FilonenkoDima/PigGame","owner":"FilonenkoDima","description":"PigGame is a simple dice game implemented in JavaScript, where two players compete to reach a target score. The game demonstrates core JavaScript concepts such as event handling, DOM manipulation, and state management in a fun, interactive environment.","archived":false,"fork":false,"pushed_at":"2024-08-28T16:24:30.000Z","size":2950,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T22:55:18.256Z","etag":null,"topics":["css","frontend","html","javascript"],"latest_commit_sha":null,"homepage":"https://filonenkodima.github.io/PigGame/","language":"CSS","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/FilonenkoDima.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":"2024-01-23T22:02:24.000Z","updated_at":"2024-08-28T16:24:34.000Z","dependencies_parsed_at":"2024-01-23T23:34:03.477Z","dependency_job_id":"8f2c6a1c-b17d-4b21-973b-e4c2318eda3d","html_url":"https://github.com/FilonenkoDima/PigGame","commit_stats":null,"previous_names":["filonenkodima/piggame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FilonenkoDima/PigGame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilonenkoDima%2FPigGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilonenkoDima%2FPigGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilonenkoDima%2FPigGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilonenkoDima%2FPigGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FilonenkoDima","download_url":"https://codeload.github.com/FilonenkoDima/PigGame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilonenkoDima%2FPigGame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["css","frontend","html","javascript"],"created_at":"2024-12-21T07:14:51.258Z","updated_at":"2026-04-13T21:01:48.021Z","avatar_url":"https://github.com/FilonenkoDima.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PigGame\n\n## About the Project\nPigGame is a two-player dice game built using vanilla JavaScript, HTML, and CSS. The objective of the game is to reach a target score before your opponent by rolling dice and accumulating points. This project serves as a practice in JavaScript programming, focusing on interactive web development and game logic implementation.\nCheck out the [live demo](https://filonenkodima.github.io/PigGame/) of PigGame.\n\n## Purpose of the Project\n- Practiced JavaScript fundamentals including variables, functions, and loops.\n- Applied DOM manipulation techniques to create an interactive gaming experience.\n- Developed game logic including state management, event handling, and user interactions.\n- Enhanced understanding of HTML and CSS for structuring and styling web applications.\n\n## Getting Started\n\n### Prerequisites\nMake sure you have the following installed on your system:\n- Git\n- A web browser\n\n### Installation\n1. Clone the repository:\n`git clone https://github.com/FilonenkoDima/PigGame.git`\n2. Navigate to the project directory:\n`cd PigGame`\n3. Running the Application: \nOpen the index.html file in your preferred web browser to start the game.\n\n## Project Structure\nThe project is organized as follows:\n- `/css`: Contains the stylesheets for the game interface.\n- `/img`: Contains images used in the game, such as dice faces.\n- `/js`: Contains JavaScript files responsible for game logic and user interactions.\n- `index.html`: The main HTML file that serves as the game's entry point.\n\n## Game Rules and Features\n- Game Objective: The first player to reach the target score wins the game.\n- Rolling the Dice: Players take turns to roll a pair of dice. The rolled number is added to their current score.\n- Holding: Players can choose to \"hold\" their score, adding it to their total score and passing the turn to the other player.\n- Losing Points: If a player rolls a 1, they lose their current score for that turn and their turn ends.\n- Winning the Game: The game ends when a player reaches or exceeds the target score (default is 100 points).\n\n## Demo\n ![](https://github.com/FilonenkoDima/PigGame/blob/main/demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilonenkodima%2Fpiggame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilonenkodima%2Fpiggame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilonenkodima%2Fpiggame/lists"}