{"id":31041656,"url":"https://github.com/0mppula/minesweeper","last_synced_at":"2025-09-14T10:33:09.159Z","repository":{"id":314435842,"uuid":"1055504483","full_name":"0mppula/minesweeper","owner":"0mppula","description":"React \u0026 TypeScript Minesweeper game.","archived":false,"fork":false,"pushed_at":"2025-09-12T11:27:57.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-12T13:25:49.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://minesweeper-seven-coral.vercel.app","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/0mppula.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-12T11:10:27.000Z","updated_at":"2025-09-12T11:28:00.000Z","dependencies_parsed_at":"2025-09-12T13:25:54.296Z","dependency_job_id":"60263370-133e-4bed-a257-1c9672586517","html_url":"https://github.com/0mppula/minesweeper","commit_stats":null,"previous_names":["0mppula/minesweeper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0mppula/minesweeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mppula%2Fminesweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mppula%2Fminesweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mppula%2Fminesweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mppula%2Fminesweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0mppula","download_url":"https://codeload.github.com/0mppula/minesweeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mppula%2Fminesweeper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275094036,"owners_count":25404444,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":[],"created_at":"2025-09-14T10:33:07.111Z","updated_at":"2025-09-14T10:33:09.145Z","avatar_url":"https://github.com/0mppula.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minesweeper (React + TypeScript)\n\nA classic **Minesweeper game** built with **React**, **TypeScript**, and **TailwindCSS**.  \nThis project is a modern web-based version of Minesweeper where you can flag mines, reveal cells, and race against the timer to win.\n\n---\n\n## Features\n\n-   Built with **React + TypeScript** for type safety\n-   Styled with **TailwindCSS + shadcn/ui**\n-   Built-in timer and mine counter\n-   Right-click to flag suspected mines\n-   Win/Lose game states with UI feedback\n\n---\n\n## Installation \u0026 Setup\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/YOUR_USERNAME/minesweeper.git\ncd minesweeper\n```\n\n### 2. Install dependencies\n\n```bash\nnpm install\n```\n\n### 3. Run the development server\n\n```bash\nnpm run dev\n```\n\nThe app will be available at http://localhost:5173\n\n---\n\n## How to Play\n\n### Start the game\n\nClick **Start** to begin, or it will automatically start when you reveal your first cell.\n\n### Revealing cells\n\n-   **Left-click** on a cell to reveal it.\n-   If the cell contains:\n    -   A **number** → it shows how many mines are in the 8 surrounding cells.\n    -   **Empty** → adjacent empty cells will also open automatically.\n    -   A **mine** → you lose the game.\n\n### Placing flags\n\n-   **Right-click** a cell to place or remove a flag (marking where you think a mine is).\n-   The counter at the top shows remaining unflagged mines.\n\n### Winning the game\n\nYou win if **all non-mine cells are revealed** OR **all mines are correctly flagged**.\n\n### Restarting\n\nClick **Restart** to start a new game anytime.\n\n---\n\n## Tech Stack\n\n-   **React 18**\n-   **TypeScript**\n-   **Vite**\n-   **TailwindCSS**\n-   **shadcn/ui**\n-   **lucide-react** (icons)\n\n---\n\n## Project Structure (key parts)\n\n```bash\nsrc/\n    components/\n    ├── Board.tsx # Game board grid\n    ├── Cell.tsx # Individual cell logic \u0026 rendering\n    ├── Header.tsx # Timer, mine counter, start/restart controls\n    hooks/\n    └── useGame.ts # Game logic (state, clicks, win/lose detection)\n    utils/\n    └── index.ts # Board initialization \u0026 helper functions\n    types/\n        └── index.ts # TypeScript types (Cell, Board, GameStatus, etc.)\n    App.tsx # Entry point\n```\n\n---\n\n## License\n\nThis project is open source under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0mppula%2Fminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0mppula%2Fminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0mppula%2Fminesweeper/lists"}