{"id":21602280,"url":"https://github.com/b-goodman/minesweeper-game","last_synced_at":"2026-04-19T07:31:35.469Z","repository":{"id":47405063,"uuid":"231296009","full_name":"b-goodman/minesweeper-game","owner":"b-goodman","description":"Minesweeper game implemented with custom elements.","archived":false,"fork":false,"pushed_at":"2022-12-10T13:37:52.000Z","size":513,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T06:40:58.516Z","etag":null,"topics":["custom-elements","game","web-components"],"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/b-goodman.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}},"created_at":"2020-01-02T02:51:13.000Z","updated_at":"2020-01-13T19:13:41.000Z","dependencies_parsed_at":"2023-01-26T07:45:41.126Z","dependency_job_id":null,"html_url":"https://github.com/b-goodman/minesweeper-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/b-goodman/minesweeper-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-goodman%2Fminesweeper-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-goodman%2Fminesweeper-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-goodman%2Fminesweeper-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-goodman%2Fminesweeper-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b-goodman","download_url":"https://codeload.github.com/b-goodman/minesweeper-game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-goodman%2Fminesweeper-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31998792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["custom-elements","game","web-components"],"created_at":"2024-11-24T19:12:42.076Z","updated_at":"2026-04-19T07:31:35.240Z","avatar_url":"https://github.com/b-goodman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minesweeper-game\n\nThe popular game 'minesweeper' made available as a custom element.\n\n## Installation\n\n```bash\nyarn add @bgoodman/minesweeper-game\n\nnpm install @bgoodman/minesweeper-game\n```\n\n## Usage\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eMinesweeper\u003c/title\u003e\n    \u003cscript type=\"module\" src=\"./dist/index.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n\n    \u003cminesweeper-game width=5 height=10\u003e\u003c/minesweeper-game\u003e\n\n\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n## Attributes\n\n### `width` (number)\n\nThe width (in cells) of the game grid.\n\n### `height` (number)\n\nThe height (in cells) of the game grid.\n\n### `mines` (number)\n\nOverride the default amount of mines placed in the game.  Otherwise calculated as `Math.floor(Math.sqrt(height * width))`.\n\n### `scale` (number)\n\nOverride the game's default scale in multiples of `1`.  Values less(greater) than `1` will result in a smaller(larger) width and height of the game grid.  Default scale (`1`) renders each cell in the game grid as `30px` x `30px`.\n\n---\n\n## Methods\n\n### `newGame(): void`\n\nResets the current game using existing values of `width`, `height` and (optionally) `mines`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-goodman%2Fminesweeper-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-goodman%2Fminesweeper-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-goodman%2Fminesweeper-game/lists"}