{"id":45187798,"url":"https://github.com/cnkang/sudoku","last_synced_at":"2026-02-20T11:04:48.757Z","repository":{"id":258498581,"uuid":"864802447","full_name":"cnkang/sudoku","owner":"cnkang","description":"A Sudoku game application built with Next.js and React, featuring an interactive grid for users to solve puzzles.","archived":false,"fork":false,"pushed_at":"2026-02-16T09:35:48.000Z","size":3074,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-16T16:31:04.114Z","etag":null,"topics":["frontend","game","interactive-game","nextjs","puzzle-game","react","sudoku","typescript","vite","web-app"],"latest_commit_sha":null,"homepage":"https://sudoku-kang.vercel.app","language":"TypeScript","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/cnkang.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":"SECURITY.md","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":"2024-09-29T07:47:23.000Z","updated_at":"2026-02-16T09:35:51.000Z","dependencies_parsed_at":"2025-01-26T13:20:46.206Z","dependency_job_id":"3f8de1e2-4cc6-450f-b4b8-6b8064b640bb","html_url":"https://github.com/cnkang/sudoku","commit_stats":null,"previous_names":["cnkang/sudoku"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cnkang/sudoku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnkang%2Fsudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnkang%2Fsudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnkang%2Fsudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnkang%2Fsudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnkang","download_url":"https://codeload.github.com/cnkang/sudoku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnkang%2Fsudoku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29648489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["frontend","game","interactive-game","nextjs","puzzle-game","react","sudoku","typescript","vite","web-app"],"created_at":"2026-02-20T11:04:48.033Z","updated_at":"2026-02-20T11:04:48.752Z","avatar_url":"https://github.com/cnkang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku Challenge (v2.0.0)\n\n## Project Description\n\nA modern, full-featured Sudoku game built with Next.js 16 and React 19. Features an intelligent puzzle generator, comprehensive game controls, responsive design, and extensive testing coverage with 92.4% overall coverage.\n\n## Features\n\n### Core Gameplay\n\n- **Interactive Sudoku Grid**: Responsive 9×9 grid with intuitive input handling\n- **10 Difficulty Levels**: From Easy (1-2) to Expert (9-10) with intelligent puzzle generation\n- **Real-time Timer**: Track your solving time with pause/resume functionality\n- **Solution Validation**: Instant feedback on puzzle completion\n\n### Game Controls\n\n- **Hint System**: Smart hints with usage tracking and strategic suggestions\n- **Undo/Redo**: Full move history with unlimited undo capability\n- **Reset Game**: Generate new puzzles with cooldown protection\n- **Pause/Resume**: Pause timer and hide grid for breaks\n\n### Technical Features\n\n- **Server-side Puzzle Generation**: Advanced DLX algorithm for unique, solvable puzzles\n- **Intelligent Caching**: API response caching with force refresh options\n- **Mobile-first Design**: Fully responsive with touch optimization\n- **Comprehensive Testing**: 87.5% test coverage with unit, integration, and responsive testing\n- **Type Safety**: Full TypeScript implementation\n\n## Prerequisites\n\n- Node.js `24.13.0` (see `.nvmrc`)\n- `pnpm 10.29.2+`\n\n## Installation\n\n```bash\ncorepack enable\ncorepack use pnpm@10.29.2\npnpm install\n```\n\n## Development\n\n```bash\n# Start development server\npnpm dev\n\n# Build for production\npnpm build\n\n# Start production server\npnpm start\n```\n\n## Testing\n\n**Test Coverage: 92.4%** (Functions: 94.3%, Branches: 94.1%, Lines: 92.4%)\n\n```bash\n# Run all tests\npnpm test\n\n# Run with coverage report\npnpm test:coverage\n\n# Run E2E tests\npnpm test:e2e\n\n# Test categories\n# - Component tests (40+ tests)\n# - Hook tests (comprehensive state management)\n# - API tests (31+ tests with caching)\n# - Responsive tests (20+ tests)\n# - Utility tests (comprehensive validation \u0026 error handling)\n# - E2E tests (Playwright integration)\n```\n\n## Code Quality\n\n```bash\n# Check code quality\npnpm quality\n\n# Fix linting and formatting\npnpm quality:fix\n```\n\n### SonarCloud Integration\n\nThis project is configured for **SonarCloud Automatic Analysis** for continuous code quality monitoring.\n\n## Project Structure\n\n```\nsrc/\n├── app/                    # Next.js App Router\n│   ├── api/solveSudoku/   # Puzzle generation API\n│   ├── __tests__/         # Page component tests\n│   ├── globals.css        # Global styles\n│   ├── page.styles.ts     # Page-specific styles\n│   └── page.tsx           # Main game page\n├── components/            # React components\n│   ├── __tests__/         # Component tests\n│   ├── SudokuGrid.tsx     # Interactive game grid\n│   ├── SudokuGrid.styles.ts # Grid component styles\n│   ├── GameControls.tsx   # Game control buttons\n│   ├── GameControls.styles.ts # Controls component styles\n│   ├── Timer.tsx          # Game timer\n│   └── DifficultySelector.tsx\n├── hooks/                 # Custom React hooks\n│   ├── __tests__/         # Hook tests\n│   └── useGameState.ts    # Game state management\n├── utils/                 # Utility functions\n│   ├── __tests__/         # Utility tests\n│   ├── hints.ts           # Hint generation logic\n│   ├── apiCache.ts        # API caching\n│   └── stats.ts           # Game statistics\n├── test-utils/            # Testing utilities\n└── types/                 # TypeScript definitions\n```\n\n## API Endpoints\n\n- `POST /api/solveSudoku?difficulty=1-10` - Generate new puzzle\n- `POST /api/solveSudoku?difficulty=5\u0026force=true` - Force new puzzle\n\n## Dependencies\n\n### Runtime\n\n- **next** (^16.0.0) - React framework with App Router\n- **react** (^19.2.0) - UI library with React Compiler\n- **fast-sudoku-solver** (^1.1.22) - Advanced puzzle generation\n- **winston** (^3.18.3) - Structured logging\n- **lodash** (^4.17.21) - Utility functions\n\n### Development\n\n- **typescript** (^5.9.3) - Type safety with strict mode\n- **vitest** (^3.2.4) - Fast testing framework\n- **eslint** (^9.38.0) - Code linting with modern config\n- **prettier** (^3.6.2) - Code formatting\n- **husky** (^9.1.7) - Git hooks for quality gates\n- **playwright** (^1.56.1) - E2E testing framework\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnkang%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnkang%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnkang%2Fsudoku/lists"}